This article details the steps to remove or delete a file that is under /var/tmp by using the Command Line Interface (CLI).
To remove or delete a file from var/tmp from the Command Line Interface (CLI), perform the following steps:
Go to shell mode by using >start shell.
Remove the file that is under var/tmp by specifying the directory and file name.
root@juniper% rm /var/tmp <filename>
root@juniper% ls /var/tmp>>
Alternatively, you can remove the required file from var/tmp by performing the following:
Go to the directory and remove the file:
root@juniper% cd /var/tmp
root@juniper% ls >> to make sure you are in the right directory
root@juniper% rm <filename>
root@juniper% ls >> to make sure the file is no longer there
The same steps can be applied to any other file in any other directory.
2023-08-30: Article created
2026-08-07: Updated article to optimize keywords for search improvement