Revoke a license on the switch if you need to transfer the license to a different switch.
You can permanently remove a license, which allows you to transfer the license to another switch. This should only be done when preparing to return a defective switch for a replacement switch (RMA).
Note
This procedure only applies to 5420 Series and 5520 Series.
The no license command invalidates the feature license and generates a revocation certificate, which is the first step to releasing the license entitlement back to the license entitlement manager (LEM). The revocation certificate is contained in a file where the first part of the file name is the switch serial number and the file extension is .rvk.
enable
configure terminal
no license <macsec | premier>
Revoke the Premier license.
Switch:1>enable Switch:1#configure terminal Enter configuration commands, one per line. End with CNTL/Z. Switch:1(config)#no license premier Successfully revoked license of type <PRD-5000-PRMR>, revocation certificate available at "/intflash/2011G-00165-PRD-5000-PRMR.rvk"