Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

request system yang delete

Syntax

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:

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

Note:

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.

Note:

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

Release Information

Command introduced in Junos OS Release 16.1R1.