Actions11
- Bucket | 存储桶 Actions
- Folder | 目录 Actions
- File | 文件 Actions
File | 文件 → Delete | 删除
AI-generatedSummary
Delete a file from a specific Aliyun OSS bucket using its full object key.
Inputs
- Bucket Name | 存储桶名称 — Target bucket name to delete the file from; if not provided, the default bucket set in credentials is used.
- Use Custom Domain | 使用自定义域名 — Optionally use a custom domain instead of the default OSS endpoint when generating file URLs for the deleted file.
- Custom Domain | 自定义域名 — Specify the custom domain bound to the bucket, including protocol (e.g., https://assets.example.com), used if 'Use Custom Domain' is enabled.
- File Key | 文件 Key (required) — The full object key (path and filename) of the file to delete in OSS.
Output shape
a single JSON object confirming deletion success and detailing the bucket and deleted object key
The operation returns an object with properties: success (true), bucket (the bucket name used), and objectKey (the deleted file's key). No file content is returned.
Examples
Example 1: Delete a file from the default bucket using its key
Provide the 'File Key' parameter with the full object key of the file to delete; optionally specify a bucket name if different from the default.