request system yang delete
Syntax
request system yang delete package-name
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.
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 terminate 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.
Options
package-name | Name of the YANG package to remove. |
Required Privilege Level
maintenance
Sample Output
request system yang delete
user@host> request system yang delete p1 Building schema and reloading /config/juniper.conf.gz ... Activating /config/juniper.conf.gz ... mgd: commit complete Restarting mgd ... WARNING: cli has been replaced by an updated version: CLI release 16.1R1 built by builder on 2016–03–30 13:46:11 UTC Restart cli using the new version ? [yes,no] (yes) yes Restarting cli ...
Release Information
Command introduced in Junos OS Release 16.1R1.