Aliyun OSS icon

Aliyun OSS

Sends data to Aliyun OSS

Bucket → Delete

AI-generated

Overview

This node allows you to interact with Aliyun OSS (Object Storage Service) buckets from n8n workflows. Specifically, for the Bucket → Delete operation, it enables you to delete an existing AWS S3-compatible bucket in your Aliyun OSS account. This is useful for automating storage management tasks, such as cleaning up unused buckets or managing resources dynamically.

Example use cases:

  • Automatically remove temporary buckets after data processing.
  • Clean up test environments by deleting buckets created during automated tests.
  • Integrate with other workflow steps that require dynamic storage provisioning and deprovisioning.

Properties

Name Meaning
Name Name of the AWS S3 bucket to delete. This is a required string property specifying which bucket will be removed from your Aliyun OSS account.

Output

The output for this operation is a JSON object indicating the success of the deletion:

{
  "success": true
}

If the node is set to continue on failure, the output may instead contain an error message:

{
  "error": "Error message here"
}

Dependencies

  • Aliyun OSS Account: You must have valid credentials (Access Key ID, Access Key Secret, and Region) configured in n8n under the "aliyun" credential type.
  • ali-oss npm package: Used internally for interacting with the Aliyun OSS API.
  • n8n Configuration: The node requires the correct credentials to be set up in your n8n instance.

Troubleshooting

Common Issues:

  • Invalid Credentials: If your access key or secret is incorrect, the node will throw an authentication error. Double-check your credentials in n8n.
  • Bucket Not Found: If the specified bucket name does not exist, you may receive an error indicating the resource cannot be found.
  • Insufficient Permissions: Ensure your Aliyun user has permission to delete buckets; otherwise, you may see an authorization error.
  • Bucket Not Empty: Some storage providers do not allow deletion of non-empty buckets. Make sure the bucket is empty before attempting deletion.

Common Error Messages:

  • "The specified bucket does not exist": Check the spelling and existence of the bucket.
  • "Access Denied": Verify your credentials and permissions.
  • "BucketNotEmpty": Remove all objects from the bucket before deleting.

Links and References

Discussion