If you know the password but want to remove it or change it, this is the standard procedure via TIA Portal.
Unlocking the Power of Your PLC Without Losing Your Mind (or Your Data)
Siemens does not provide a password recovery tool. The only official methods are: