Aliyun OSS icon

Aliyun OSS

Sends data to Aliyun OSS

Folder → Delete

AI-generated

Overview

The Aliyun OSS node for n8n allows you to interact with Alibaba Cloud's Object Storage Service (OSS). Specifically, the Folder → Delete operation enables users to delete a folder (and its contents) from a specified bucket in Aliyun OSS. This is useful for automating cleanup tasks, managing storage, or integrating file management into larger workflows.

Practical scenarios:

  • Automatically remove temporary folders after processing files.
  • Clean up old data directories as part of scheduled maintenance.
  • Integrate with other nodes to manage cloud storage dynamically.

Properties

Name Meaning
Bucket Name The name of the OSS bucket containing the folder you want to delete.
Folder Key The key (path) of the folder to delete within the specified bucket.

Output

  • On success, the output will be a JSON object indicating which keys (folders/files) were deleted.
    Example:
    {
      "deleted": [
        { "Key": "your/folder/path/" }
      ]
    }
    
  • If the folder contains multiple objects, all are listed under deleted.
  • On error (if "Continue On Fail" is enabled), the output will include an error field with the error message.

Dependencies

  • External Service: Requires access to Alibaba Cloud OSS.
  • Credentials: You must configure Aliyun credentials (accessKeyId, accessKeySecret, and region) in n8n.
  • n8n Configuration: No additional environment variables required beyond standard credential setup.

Troubleshooting

Common Issues:

  • Invalid Bucket Name or Folder Key: Ensure both values are correct and exist in your OSS account.
  • Insufficient Permissions: The provided Aliyun credentials must have permission to delete objects in the target bucket.
  • Non-empty Folders: The node handles both empty and non-empty folders by deleting all contained objects, but if there are permission issues on some objects, deletion may partially fail.

Error Messages:

  • "NoSuchBucket": The specified bucket does not exist. Check the bucket name.
  • "AccessDenied": The credentials do not have sufficient permissions.
  • "Downloading a whole directory is not yet supported, please provide a file key": (Not relevant for folder deletion, but may appear if using file operations incorrectly.)

Resolution Steps:

  • Double-check bucket and folder names.
  • Verify that the credentials have the necessary permissions.
  • Review the error message in the output for more details.

Links and References

Discussion