Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?


request system yang delete



Release Information

Command introduced in Junos OS Release 16.1R1 on MX Series and T Series routers.

Command introduced in Junos OS Release 17.1R1 on EX Series and QFX Series switches and PTX Series routers.

Command introduced in Junos OS Release 17.3R1 on SRX345, SRX1500, SRX4100, SRX4200, SRX5400, SRX5600, and SRX5800 devices and vSRX instances.

Command introduced in Junos OS Release 18.1R1 on ACX Series routers.


Remove the given YANG package and all of its modules and scripts from the device, and remove the data models associated with that package from the Junos OS schema.


Before you delete a YANG package, ensure that the active configuration does not contain configuration data that has dependencies on the data models added by that package.


You must use the request system software delete command to remove OpenConfig packages that were installed from a compressed tar file using the request system software add command.

When you delete a package, Junos OS rebuilds its schema to remove the data models associated with that package and then validates the active configuration against the newly updated schema. The device removes the copies of the module and script files that were generated when the package was created. The device also removes the copies of the package’s action script and translation script files that are stored under the /var/db/scripts/action and /var/db/scripts/translation directories. If you downloaded the original module and script files to a different location, the original files remain unchanged.


Devices that use the ephemeral configuration database will delete all ephemeral configuration data in the process of rebuilding the schema.


To prevent CLI-related or configuration database errors, we recommend that you do not perform any CLI operations, change the configuration, or abort the operation while a device is in the process of adding, updating, or deleting a YANG package and modifying the schema.


Starting in Junos OS Release 18.3R1, adding, deleting, or updating YANG packages in configuration mode with the run command is not supported.


package-nameName of the YANG package to remove.

Required Privilege Level


Sample Output

request system yang delete

user@host> request system yang delete p1