only delete private_key if there