Can deleted service account keys can be recovered?

I have json service account key file which was downloaded during creation of service account key. If my service account key got deleted from gcp, is that possible to recover the SA key using the json file?

Once the SA keys are deleted, can it be recover ?

0 1 97
1 REPLY 1

Hello @Sanhegde,

Welcome to Google Cloud Community!

Unfortunately, no, it is not possible to recover a deleted service account key using the JSON file once it has been deleted from GCP. Service account keys are designed to be secure and once deleted, they are unrecoverable and a new key must be created. This is a critical security measure to prevent unauthorized access to your resources.

See this document


Deleting a service account key permanently prevents you from using the key to authenticate with Google APIs.

You cannot undelete a deleted key. Before you delete a key, we recommend that you disable the key, then wait until you are sure that the key is no longer needed. You can then delete the key.


Thanks!