Logic Machine Forum
DELETE Libraries via Lua - 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 Libraries via Lua (/showthread.php?tid=5584)



DELETE Libraries via Lua - kike - 28.08.2024

Hi everyone!

I need to delete some libraries and scripts from a logicmachine after using then. 

Deleting the scripts is easy,  but since the libraries are not in the main database I don't know how to do it or if even it's posible to do it.

Thanks in advance!!

Kike


RE: DELETE Libraries via Lua - admin - 28.08.2024

Try this:
Code:
libname = 'user.test'

webrequest = require('webrequest')
webrequest('scripting', 'delete', { data = { id = libname } })



RE: DELETE Libraries via Lua - kike - 28.08.2024

Thank you admin! One more thing ... is there any doc or link that shows all the " webrequest  library" possibilities?? It would be great! Thanks Kike

(28.08.2024, 12:30)admin Wrote: Try this:
Code:
libname = 'user.test'
webrequest = require('webrequest')
webrequest('scripting', 'delete', { data = { id = libname } })



RE: DELETE Libraries via Lua - admin - 28.08.2024

See this: https://forum.logicmachine.net/showthread.php?tid=4425