Delete Bucket
Deletes a bucket from Google Cloud Storage.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.
Inputs
- GCS Client Id - The client identifier obtained from the Connect node.
- Bucket Name - The name of the bucket to be deleted.
How It Works
The Delete Bucket node removes a bucket from Google Cloud Storage. When executed, the node:
- Validates the provided inputs (GCS Client Id, Bucket Name)
- Uses the existing storage client connection
- Deletes the specified bucket from Google Cloud Storage
- Operation completes with a 10-second timeout
Requirements
- A valid GCS Client Id from a successful Connect node execution
- Valid bucket name that exists in Google Cloud Storage
- Proper permissions to delete buckets in the specified project
- The bucket must be empty before deletion (Google Cloud Storage requirement)
Error Handling
The node will return specific errors in the following cases:
- Empty or invalid GCS Client Id
- Empty or invalid Bucket Name
- Bucket does not exist
- Bucket is not empty (contains objects)
- Insufficient permissions to delete the bucket
- Google Cloud Storage service errors
- Operation timeout (after 10 seconds)
Usage Notes
- The bucket must be completely empty before it can be deleted
- All objects in the bucket must be deleted first
- This operation cannot be undone
- Once a bucket is deleted, its name becomes available for reuse after a period of time
- Make sure the authenticated account has the necessary permissions to delete buckets
- The operation has a 10-second timeout for safety
- Deleted buckets cannot be recovered
- Consider using lifecycle policies for automatic cleanup instead of manual deletion