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