Edit this file to remove any entries that refer to a location in WPS_HOME or WAS_HOME for the portal that you are trying to uninstall.
You can just delete this file, but that advisable only if you have no other portal installations of any version on this machine.