Greetings!
The variables are in
/system script environment
Do a print and then use
remove X
where X is the line number of the variable you want to delete.
I use the NO-IP mikrotik scrip, and every now and then, I run this command “/system script environment remove [find user=“admin”]” to remove everything, so that I can do a forced IP update
but of course now after a upgrade , the old scripts doesn’t work!!!
I use the NO-IP mikrotik scrip, and every now and then, I run this command “/system script environment remove [find user=“admin”]” to remove everything, so that I can do a forced IP update
but of course now after a upgrade > , the old scripts doesn’t work!!!
There is no “user” field in “/system script environment”. That is probably why it is not running.
When using WinBox you can also go to “System → Scripts → Environment tab” where you have a full list of all global variables and can delete any you you want. You can even change the value of a global variable in this menu.
Remember that you need FULL ADMIN permissions to do either of these.
The “[find]” simply selects all objects that matches the search criteria and added them to an array.
If there is more than one object the “remove” command is simply repeated for each object in the array. Same way as if you had done a “:foreach” loop.