The "xzip_delete" Function
|string||The full path and filename of the archive to modify|
|string/integer/array/keyword||The name or index of a file to delete, or array of files (or keyword 'all' for all files)|
|string/integer||Optional: Additional files to delete from the archive (arrays and keywords not accepted)|
Checks if one or more files exist in the given archive and deletes them. If a folder is supplied, all contents of the folder will be deleted.
false to indicate if the operation succeeded or failed. Note that this includes failure to delete a file flagged as read-only. (This can be determined with
If multiple files are input, even a single error will return
false even though other files succeeded. In this scenario, use
xzip_report to retrieve a list of failed files.
For files stored in the archive, a full path should not be used, just the file name with extension. Use
xzip_list to see what file names are available in the archive. The numerical index from
xzip_list, an array, or the
all keyword can also be used.
Also note that this script does not delete the archive itself! For that, use the built-in
Be warned that deletion takes time, and deleting many files at once can cause the game to temporarily appear frozen.