request system yang delete

 

Syntax

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.

Description

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.

Caution

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.

Note

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.

Note

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

Note

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

Options

package-nameName of the YANG package to remove.

Required Privilege Level

maintenance

Sample Output

request system yang delete

user@host> request system yang delete p1