delete. Deleting file from disk

^file:delete[path;options]   [3.4.3]

Deletes specified file.
path-path and name of file

If the directory is found empty after a file is deleted, the directory will also be deleted (if possible).

Optional options:
$.keep-empty-dirs(true)-preserve empty directories after the file is deleted.
$.exception(false)-suppress exception if error occurs during file's deletion.



Copyright © 1997–2017 Art. Lebedev Studio | Last updated: 23.10.2013