This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Script delete ?
#1
Hello everyone,

is it possible to delete a script by a script ?

like this ?
 
script.remove('Scriptname')

Kind regards and thank you for any help in advance
Reply
#2
There's no built-in function for this, but you can emulate a web request in your script (change 1 to your script ID):
Code:
require('json')
function json.data()
  return { id = 1 }
end
dofile('/lib/genohm-scada/web/scripting/delete.lua')
Reply


Forum Jump: