remove incorrect safeguards in key pair deletion

[#42828011]