Delete Empty Folder
A 3-step recipe with Google Cloud Platform. We can help you get access.
Recipe · 3 steps
Delete Empty Folder
Delete a folder only if it has no child projects.
- List the projects directly under the folder to verify it is empty.
- Delete the empty folder. 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.
What you'll need to have ready
- folderId: The folder resource id to delete (e.g. 500123).
- folderResource: The folder resource name used as the list parent, e.g. folders/500123.
For your developer
Arazzo workflow google-cloud-platform:delete-empty-folder, 3 operations: cloudresourcemanager.projects.list → cloudresourcemanager.folders.delete → cloudresourcemanager.operations.get. Specs on APIs.io.