delete file <file>
Deletes a file or directory.
- A file or directory to delete, including the path.
Use this command to delete a file or directory.
This command is optimized for configuration files and directories in that command completion refers to the
/config directory of all known system images. For example,
running://config/ indicates the
/config directory of the currently running system, and
/config directory of an image called test-image1. If needed, however, any other location within the file system can be specified.
This example shows how to delete the
/config/user-data/xxx file from the currently running system.
vyatta@vyatta:~$ delete file running://config/user-data/xxx Do you want to erase the running://config/user-data/xxx file? (Y/N): y File erased vyatta@vyatta:~$