How to Delete a Remote File or Directory in CLI

Delete a remote file or directory

To delete a remote file or a directory use the del (or rm) command:

    del [options] <remote path>

remote path can refer to a file or directory using either an absolute or a relative path.

Options:

    --recursive, -r: recursively delete files and directories.

Delete multiple remote files

To delete multiple remote files use the mdel command

    mdel <remote files>

remote files is a regular expression to select which files are removed. See Regular Expressions for the regular expression syntax.

Delete a local file or directory

To delete a local file or a directory use the ldel (or lrm) command:

    ldel [options] <local path>;

local path can refer to a file or directory using either an absolute or a relative path.

Options:

    --recursive, -r: recursively delete files and directories.

Tags: ,