FileDelete()
Deletes the specified file on the server.
FileDelete( file=any );
Returns: void
| Argument | Description |
|---|---|
|
file
any,
required
|
edit
file to delete. Alias: source, filePath |
Examples
editfileDelete("my/path/to/file.md")
Do not throw when the file does not exist ( since Lucee 9.0.0.564 )
// no exception when the file is already gone, for example when another thread removed it
fileDelete( file="my/path/to/file.md", throwOnMissing=false );
See also
- File handling
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)