Skip to main content

Delete Object

Deletes an object (file) from a Google Cloud Storage bucket.

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 containing the object to be deleted.
  • Object Name - The name of the object (file) to be deleted.

How It Works

The Delete Object node removes an object (file) from a Google Cloud Storage bucket. When executed, the node:

  1. Validates the provided inputs (GCS Client Id, Bucket Name, Object Name)
  2. Uses the existing storage client connection
  3. Deletes the specified object from the bucket

Requirements

  • A valid GCS Client Id from a successful Connect node execution
  • Valid bucket name that exists in Google Cloud Storage
  • Valid object name that exists in the specified bucket
  • Proper permissions to delete objects in the specified bucket

Error Handling

The node will return specific errors in the following cases:

  • Empty or invalid GCS Client Id
  • Empty or invalid Bucket Name
  • Empty or invalid Object Name
  • Bucket does not exist
  • Object does not exist
  • Insufficient permissions to delete the object
  • Google Cloud Storage service errors

Usage Notes

  • Object names can include folder-like paths (e.g., "folder/subfolder/file.txt")
  • This operation cannot be undone
  • Once an object is deleted, it cannot be recovered unless versioning is enabled on the bucket
  • Make sure the authenticated account has the necessary permissions to delete objects
  • The operation is immediate and does not require additional confirmation
  • Deleted objects free up storage space and reduce costs
  • If versioning is enabled on the bucket, the object may be archived rather than permanently deleted