If you want to remove a license key entered to activate Microsoft office for any reason, you could use this method to remove the key so that you won't have to spend time downloading, uninstalling and reinstalling office package.
I have used this method in Office 2016/2019/2021 to help some customers activate office without taking time and bandwidth to reinstall, some sources suggest it would work on office 2013 also and also for office 365.
Steps:
1. Locate ospp.vbs file location
An easy way to do this is to right click on any office app like word > Open file location and navigate to office folder, find "office16" folder
Usually if you didn't change the installation path, the default location for 64 bit is: "C:\Program Files\Microsoft Office\Office16"
and for 32 bit is: " C:\Program Files (x86)\Microsoft Office\Office16"
2. Open cmd as admin to the location of the ospp.vbs file
You can type
cd C:\Program Files\Microsoft Office\Office16
to get cmd to the location also if office is in default location for 64 bit
3. Display the Current License(s)
Type the following command to display the license status. Note the last five characters of any and all license keys that display in the output:
cscript ospp.vbs /dstatus
3. Remove the License(s)
Now run the following command as many times as needed to remove all of the license keys you noted from the previous step.
cscript ospp.vbs /unpkey:<last five characters of product key>
4. Enter New Office License key
Launch any office app as admin (right click word > run as administrator) and continue the activation process.
Done!

Social Plugin