Delete and Restore Folder
A 5-step recipe with Google Cloud Platform. We can help you get access.
Recipe · 5 steps
Delete and Restore Folder
Delete a folder then restore it within the grace period.
- Read the folder to confirm it exists and capture its starting state.
- Mark the folder for deletion. Returns a long-running Operation whose name is used to poll for completion.
- Poll the delete operation by name until the done flag is true.
- Restore the folder from DELETE_REQUESTED within the grace period. Returns a long-running Operation whose name is used to poll.
- Poll the undelete operation by name until the done flag is true.
What you'll need to have ready
- folderId: The folder resource id to delete and restore (e.g. 500123).
For your developer
Arazzo workflow google-cloud-platform:delete-and-restore-folder, 5 operations: cloudresourcemanager.folders.get → cloudresourcemanager.folders.delete → cloudresourcemanager.operations.get → cloudresourcemanager.folders.undelete → cloudresourcemanager.operations.get. Specs on APIs.io.