Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

request system software delete (Junos OS Evolved)

date_range 20-Feb-25

Syntax

content_copy zoom_out_map
request system software delete  
<force>
<package-name>
<archived>
<all-third-party-packages>

Description

Use this command to remove a software package from the device, as long as it is not the software version currently running on the system. The force option is required if the requested version is the rollback version.

CAUTION:

Before removing a software package, make sure that you have already placed the new software package that you intend to load onto the device, in the /var/tmp directory.

If you have added a new software package, but you have not yet rebooted the system to complete the installation of the package, use this command to remove the newly added package and cancel the installation.

Starting in Junos OS Evolved Release 24.4R1, for ACX and PTX routers that support this feature, you can use this command to delete a jfirmware software package. To install a newer jfirmware package, you must first delete the jfirmware package already on the device.

Options

package-name

Name of the Junos OS Evolved package running on the device. Type the package-name explicitly and do not use the tab key to auto-complete the command. You can see this package name by issuing the show system software list operational mode command.

all-third-party-packages

(Optional) Delete all third-party software on the device.

archived

(Optional) Delete all archived software versions except the current and the rollback versions. When there is a pending next-boot software version, you must reboot the system to finish installing that version, or delete just that version, before you can delete any versions with this option. If the other Routing Engine in the system has more images than the one from which you are issuing the command, the older versions are deleted from the current Routing Engine and the current and the rollback versions are synchronized to the other Routing Engine.

force

(Optional) Ignore warnings and force removal of the software. The force option is required if the requested version is the rollback version.

Additional Information

Before you upgrade the software on the router or replace one of the Routing Engines, when you have a known stable system, issue the request system snapshot command to back up the software, including the configuration, to the /soft directory. After you have upgraded the software or have replaced one of the Routing Engines, and are satisfied that the software packages are successfully installed and running, issue the request system snapshot command again to back up the software to the /soft directory.

After you run the request system snapshot command, you cannot return to the previous version of the software because the running and backup copies of the software are identical.

Required Privilege Level

maintenance

Output Fields

When you enter this command, the system provides feedback on the status of your request.

Sample Output

request system software delete (Junos OS Evolved)

content_copy zoom_out_map
user@host> request system software delete junos-evo-install-qfx-fixed-x86-64-18.3I20180911102422  
Removing version 'junos-evo-install-qfx-fixed-x86-64-18.3I20180911102422'.
Software ... done.
Data ... done.
Version 'junos-evo-evo-qfx-fixed-x86-64-18.3I20180911102422' removed successfully. 

request system software delete archived

content_copy zoom_out_map
user@host-re0> request system software delete archived
ALERT:  This command will delete all archived SW versions except current and rollback.
        Do you want to proceed? [yes,no] (no) yes

Software delete in progress...
re0: Executing Software delete...
re0: Cannot delete junos-evo-install-ptx-x86-64-20.4-202103141559.0-EVO - It is the current version
re0: Rollback or scratch install
re0: Removing version junos-evo-install-ptx-x86-64-20.4-202103150459.0-EVO...
re0: Removing version junos-evo-install-ptx-x86-64-20.4-202103111254.0-EVO...
re1: Removing version junos-evo-install-ptx-x86-64-20.4-202103150459.0-EVO...
re1: Removing version junos-evo-install-ptx-x86-64-20.4-202103111254.0-EVO...
Image deletion succeeded.

request system software delete archived (with Next-boot Software Version in System)

content_copy zoom_out_map
user@host-re0> request system software delete archived
ALERT: This command will delete all archived SW versions except current and rollback.
Do you want to proceed? [yes,no] (no) yes

re0: Software delete cannot proceed as reboot is pending after upgrade/rollback to junos-evo-install-ptx-x86-64-20.4I20210212000536-EVO.
re0: Please reboot before doing delete operation.
re0: Or Delete junos-evo-install-ptx-x86-64-20.4I20210212000536-EVO using 'request system software delete'.
re0: Run 'show system software list' to get all installed software versions
Image deletion failed.

request system software delete archived (with Only a Current and Rollback Version Available)

content_copy zoom_out_map
user@host-re0> request system software delete archived
ALERT: This command will delete all archived SW versions except current and rollback.
Do you want to proceed? [yes,no] (no) yes

re0: Only minimal set of software versions exists. Cannot delete Current or Rollback versions.
Image deletion failed.

Release Information

all-third-party-packages option introduced in Junos OS Evolved Release 19.4R2.

archived option added in Junos OS Evolved Release 20.4R2.

Support for deleting jfirmware packages introduced in Junos OS Evolved Release 24.4R1.

footer-navigation