Originally Posted by lyravega
A command/function that clears everything in a savedVariable file, it could be useful. We could include it in "defaults" button, for example, to clean the file up before re-initializing everything with default values.
Reasons: "released" variables stay in the file unless the add-on sets them to nil. An official, quick command to clean the savedVariable file up would be much more useful.
|
This is my function to clear SV.
Lua Code:
function IRY:cls()
self.playerDatabase.data={}
ReloadUI()
end