Actions12
File → Delete
AI-generatedOverview
The Aliyun OSS node for n8n allows you to interact with Alibaba Cloud's Object Storage Service (OSS). Specifically, the File → Delete operation enables users to delete a specific file from a designated bucket in their Aliyun OSS account. This is useful for automating file management tasks such as cleaning up outdated files, removing sensitive data, or managing storage costs by deleting unnecessary objects.
Practical examples:
- Automatically delete log files older than a certain date.
- Remove temporary files after processing them in a workflow.
- Clean up user-uploaded files when a user account is deleted.
Properties
| Name | Meaning |
|---|---|
| Bucket Name | The name of the OSS bucket containing the file to be deleted. (Required) |
| File Key | The unique key (path/filename) of the file within the bucket to delete. (Required) |
| Options | Additional options for deletion. |
| – Version ID | (Within Options) The version ID of the file to delete, if versioning is enabled. |
Output
The output will be a JSON object indicating the result of the deletion:
{
"success": true
}
If an error occurs and "Continue On Fail" is enabled, the output will be:
{
"error": "Error message here"
}
No binary data is produced by this operation.
Dependencies
- External Service: Requires access to Alibaba Cloud OSS.
- Credentials: You must configure Aliyun credentials (
accessKeyId,accessKeySecret, andregion) in n8n. - n8n Configuration: The node requires the "aliyun" credential type to be set up in your n8n instance.
Troubleshooting
Common Issues:
- Invalid Credentials: If your access keys or region are incorrect, the node will fail to authenticate.
- Bucket or File Not Found: If the specified bucket or file key does not exist, the node will return an error.
- Insufficient Permissions: The provided credentials must have permission to delete objects in the specified bucket.
- Version ID Errors: If you specify a version ID that does not exist, the deletion will fail.
Common Error Messages:
"The specified bucket does not exist": Check the bucket name for typos."The specified key does not exist": Ensure the file key is correct."AccessDenied": Verify your credentials and permissions."InvalidArgument: versionId": Make sure the version ID is valid for the given file.
How to resolve:
- Double-check all property values.
- Ensure your credentials are correct and have the necessary permissions.
- If using versioning, confirm the version ID exists for the file.