Skip to content

Delete a file or directory

The fs.remove_file function is used to delete a file, the first argument is a string of the file path.

And the fs.remove_dir function for use to delete a directory. fs.remove_dir_all for delete a directory and all its sub-directories and files.

nv,