FAQ | How can I delete files via scripting?

Learn how to delete files from your system using a scripting language.

Updated at May 17th, 2023

Your engagement helps us create the content you need. Click here to review this article.



Table of Contents

Answer


Deleting files via Lua scripting involves using one of the available "os" commands.  Deleting of files can only be done within one of the available "sand-boxed" sections of the file system-- Design or Media.  

As examples:

os.remove("media/MyTestFile")
os.remove("design/MyTestFile")