delete. Deleting file from disk

^file:delete[path]
^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.


Example

^file:delete[story.txt]


Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 23.10.2013