N8N Tools - S3 Enhanced
Actions66
- Generate Presigned URL
- Generate Presigned POST
- Create Bucket
- Delete Bucket
- List Buckets
- Upload Object
- Download Object
- Delete Object
- List Objects
- Copy Object
- Get Object ACL
- Put Object ACL
- Get Bucket ACL
- Put Bucket ACL
- Get Bucket CORS
- Put Bucket CORS
- Delete Bucket CORS
- Get Bucket Lifecycle
- Put Bucket Lifecycle
- Delete Bucket Lifecycle
- Get Bucket Policy
- Put Bucket Policy
- Delete Bucket Policy
- Get Object Tagging
- Put Object Tagging
- Delete Object Tagging
- Get Bucket Tagging
- Put Bucket Tagging
- Delete Bucket Tagging
- Create Multipart Upload
- Upload Part
- Complete Multipart Upload
- Abort Multipart Upload
- List Parts
- List Multipart Uploads
- Get Bucket Versioning
- Put Bucket Versioning
- Get Bucket Logging
- Put Bucket Logging
- Get Bucket Notification
- Put Bucket Notification
- Get Bucket Replication
- Put Bucket Replication
- Delete Bucket Replication
- Get Bucket Encryption
- Put Bucket Encryption
- Delete Bucket Encryption
- Get Bucket Website
- Put Bucket Website
- Delete Bucket Website
- Get Bucket Metrics
- Put Bucket Metrics
- Delete Bucket Metrics
- Get Bucket Analytics
- Put Bucket Analytics
- Delete Bucket Analytics
- Get Bucket Inventory
- Put Bucket Inventory
- Delete Bucket Inventory
- Get Bucket Request Payment
- Put Bucket Request Payment
- Get Bucket Accelerate
- Put Bucket Accelerate
- Head Object
- Restore Object
- Select Object Content
Overview
This node provides enhanced integration with S3-compatible object storage services, enabling a wide range of bucket and object management operations. It supports advanced features such as generating presigned URLs for secure temporary access, multipart uploads for large files, and detailed bucket configurations (e.g., lifecycle, CORS, policies).
The "Delete Object" operation specifically allows users to delete a single object from a specified bucket by providing the bucket name and the object's key (path). This is useful in scenarios where you want to programmatically remove files or data stored in an S3 bucket, such as cleaning up outdated backups, removing user-uploaded files, or managing storage costs.
Practical example:
- Automatically deleting a file after processing it in a workflow.
- Removing temporary files uploaded during a session.
- Cleaning up objects that match certain criteria after a batch job completes.
Properties
| Name | Meaning |
|---|---|
| Bucket Name | Name of the S3 bucket from which the object will be deleted. |
| Object Key | Complete path/key of the object within the bucket to delete (e.g., folder/file.pdf). |
Output
The output JSON contains the following fields:
bucket: The name of the bucket where the object was deleted.key: The key (path) of the deleted object.deleted: A boolean value (true) indicating that the deletion was successful.operation: The string"deleteObject"indicating the performed operation.timestamp: ISO 8601 timestamp when the operation was executed.success: Booleantrueindicating the operation succeeded.
If the operation fails and "Continue On Fail" is enabled, the output will contain an error message and success: false.
No binary data is output for this operation.
Dependencies
- Requires valid credentials for an S3-compatible service, including access key ID and secret access key, optionally with region, endpoint, and session token.
- Uses AWS SDK clients internally to communicate with the S3 API.
- The node expects proper configuration of these credentials in n8n before use.
Troubleshooting
Common issues:
- Invalid or missing bucket name or object key parameters.
- Insufficient permissions to delete objects in the specified bucket.
- Network or endpoint connectivity problems.
- Incorrect credentials leading to authentication errors.
Common error messages and resolutions:
"S3 operation failed: Access denied": Check that the API key has permission to delete objects in the bucket."S3 operation failed: NoSuchBucket": Verify the bucket name exists and is correctly spelled."S3 operation failed: NoSuchKey": Confirm the object key exists in the bucket."S3 operation failed: InvalidAccessKeyId"or"Invalid Secret Access Key": Recheck your credentials.- Connection errors like
"Cannot connect to endpoint": Validate network access and endpoint URL.
Enabling "Continue On Fail" can help workflows proceed even if some deletions fail, allowing error handling downstream.