Erase File
Description
Erases/deletes the given file/directory. If the path given is a directory, it must be empty before it can be deleted.
Format
E path
Parameters
pathis the absolute path to a file/directory. A properly formatted path must begin with a “/” (forward slash) and begins at the root directory. Subdirectories are separated with “/” (forward slash).- e.g.
/logs/january/jan3.log
- e.g.
Response Format
NULL | Success |
Enn | An error occurred |
Example
To delete a directory:
E /emptydir
To delete a file:
E /filename.txt