remove Function

Top  Previous  Next

Deletes a file or folder.

Syntax

File.remove(path [, folder])

Arguments

pathA string with the path to the file or folder to be deleted.
folderAn optional instance File object representing a folder. If present, path is relative to folder; otherwise, path is from the root.

Return Value

Zero if successful; a negative number representing an error code if failure.

Remarks

 

Examples

 

See Also