Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All
     

    Related Documentation

     

    request system yang delete

    Syntax

    request system yang delete package-name

    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: 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

     

    Related Documentation

     

    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 ...
    

    Modified: 2018-04-17