06.03.2023, 09:15
I accidentally created 200+ scheduled scripts, and want to now delete them.
Would this function work if I know the id of every script? Just want to be careful not interfering with internal script behaviour...
Would this function work if I know the id of every script? Just want to be careful not interfering with internal script behaviour...
Code:
--------------------------------------------------------------------------------------------
-- Delete a script
--
-- @param id number id of script to delete
--
--------------------------------------------------------------------------------------------
function ScriptUtilities.delete(id)
db:query('DELETE FROM scripting WHERE id = ' .. id)
script.reload(true)
end