lovr.filesystem.remove

Edit

Remove a file or directory in the save directory.

success = lovr.filesystem.remove(path)

Arguments

NameTypeDescription
pathstring The file or directory to remove.

Returns

NameTypeDescription
successboolean Whether the path was removed.

Notes

A directory can only be removed if it is empty.

To recursively remove a folder, use this function with lovr.filesystem.getDirectoryItems.

See also