Google Cloud Platform · Arazzo Workflow
Google Cloud Platform Delete Empty Folder
Version 1.0.0
Confirm a folder has no child projects, then delete it and poll the operation.
View Spec
View on GitHub
API ManagementCloud ComputingInfrastructurePlatform as a ServiceArazzoWorkflows
Provider
Workflows
delete-empty-folder
Delete a folder only if it has no child projects.
Lists child projects, aborts if any remain, otherwise deletes the folder and waits for the operation.
1
listChildProjects
cloudresourcemanager.projects.list
List the projects directly under the folder to verify it is empty.
2
deleteFolder
cloudresourcemanager.folders.delete
Delete the empty folder. Returns a long-running Operation whose name is used to poll for completion.
3
pollDelete
cloudresourcemanager.operations.get
Poll the delete operation by name until the done flag is true.