Actions11
- Bucket | 存储桶 Actions
- Folder | 目录 Actions
- File | 文件 Actions
Folder | 目录 → Delete | 删除
AI-generatedSummary
Delete a specified folder on Aliyun OSS, optionally removing all objects within it recursively.
Inputs
- Bucket Name | 存储桶名称 — Target bucket name; if omitted, uses the default bucket from credentials.
- Folder Key | 目录 Key (required) — Full folder key to delete, e.g. 'documents/reports/'.
- Recursive | 递归删除 — Boolean flag to delete all objects under the folder recursively.
Output shape
a single record with deletion result details, including 'success' status, bucket name, and count of deleted objects if applicable
Throws an error if the folder contains objects and 'Recursive' is false. Successful deletion returns confirmation and the number of deleted objects. Recursive deletion removes all objects under the folder before deleting the folder key itself.