Alicloud OSS icon

Alicloud OSS

Operate Alibaba Cloud OSS within n8n workflows (ali-oss SDK)

Delete

AI-generated

Overview

This node operation deletes an object from Alibaba Cloud OSS (Object Storage Service) based on the specified object key. It is useful for workflows that need to manage storage by removing files or objects from OSS, such as cleaning up outdated files or managing storage space.

Use Case Examples

  1. Deleting a specific file from OSS by providing its full path (object key).
  2. Automating the removal of temporary files after processing.

Properties

Name Meaning
Object Key Full path of the OSS object to delete, e.g., folder/file.txt. This is required to specify which object to delete.

Output

JSON

  • json
    • success - Indicates if the delete operation was successful (true/false).
    • objectKey - The object key of the deleted OSS object.

Dependencies

  • Requires Alibaba Cloud OSS API credentials including region, accessKeyId, accessKeySecret, bucket, and optionally endpoint.

Troubleshooting

  • Common issues include providing an incorrect or non-existent object key, which will cause the delete operation to fail.
  • If the node throws an error, ensure the provided credentials have sufficient permissions to delete objects in the specified OSS bucket.
  • Network or timeout issues may cause failures; verify network connectivity and OSS service availability.

Discussion