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

  • path is 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

Response Format

NULLSuccess
EnnAn error occurred

Example

To delete a directory:

E /emptydir

To delete a file:

E /filename.txt