Recover deleted folder in Google Cloud Storage

I have accidentally deleted one folder from the Google Cloud Storage. How can I recover this folder?


You cannot recover from that:

Warning: Object deletion cannot be undone. Cloud Storage is designed to give developers a high amount of flexibility and control over their data, and Google maintains strict controls over the processing and purging of deleted data. To protect yourself from mistakes, see Deleting data best practices.

GCP storage docs

Take a look at the best practices documentation concerning deleting objects.


I cannot comment here but to complement Henrik Pingel's answer, there is an object versioning feature that would allow you to plan ahead of time against accidental deletion of objects, although it is not enabled by default, it is a good practice to enable it straight away after creating buckets.