Logic Machine Forum
delete from storage - Printable Version

+- Logic Machine Forum (https://forum.logicmachine.net)
+-- Forum: LogicMachine eco-system (https://forum.logicmachine.net/forumdisplay.php?fid=1)
+--- Forum: Scripting (https://forum.logicmachine.net/forumdisplay.php?fid=8)
+--- Thread: delete from storage (/showthread.php?tid=3594)



delete from storage - gjniewenhuijse - 29.09.2021

How to delete all storage records started with "zwave:"


RE: delete from storage - Daniel - 29.09.2021

Utilities - Reset/cleanup and select Script storage. Alternatively you can use Storage app.


RE: delete from storage - gjniewenhuijse - 29.09.2021

(29.09.2021, 14:41)Daniel Wrote: Utilities - Reset/cleanup and select Script storage. Alternatively you can use Storage app.

when i do this, can i choose to only delete records started with "zwave:"?

manual done with the Storage app is not easy, over the hunderds of records.


RE: delete from storage - admin - 01.10.2021

Use this:
Code:
keys = storage.keys('zwave:*')
for _, key in ipairs(keys) do
  storage.delete(key)
end