Vyatta Network OS Documentation

Learn how to install, configure and operate the Vyatta NOS, which helps drive our virtual networking & physical platforms portfolio.

delete file <file>

Deletes a file or directory.

delete file file
A file or directory to delete, including the path.

Operational mode

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 test-image1://config/indicates the /config directory of an image called test-image1. If needed, however, any other location within the file system can be specified.

CAUTION: Use this command with caution because its effects are not reversible.

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