system.tag.readAll override

Hello and happy new year,

A client of mine has, by mistake, redefined a system function (sytem.tag.readAll) by assigning a value to it in a script :
system.tag.readAll = 42 (for example)

Now and even after a Gateway restart, the function system.tag.readAll does not exist anymore (as it has been redefined). Calling a system.tag.readAll() raises an error.

I managed to get it back by re-installing the Gateway, but is there a easier way to undefine/unset/reset a function to its initial definition ?

Thank you.

Removing the cache (c:\users\xxx.ignition) seems to do the trick.

Is there a way to prevent a redefinition of these functions ?

I don’t think there is anything you can do to prevent a user from overriding or redefining a system function.