This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

DELETE Libraries via Lua
#1
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
Reply
#2
Try this:
Code:
libname = 'user.test'

webrequest = require('webrequest')
webrequest('scripting', 'delete', { data = { id = libname } })
Reply
#3
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 } })
Reply
#4
See this: https://forum.logicmachine.net/showthread.php?tid=4425
Reply


Forum Jump: