Aliyun OSS | 阿里云对象存储 icon

Aliyun OSS | 阿里云对象存储

管理阿里云 OSS 上的 Bucket、文件夹与文件 / Manage Aliyun OSS buckets, folders, and files.

Folder | 目录 → Delete | 删除

AI-generated

Summary

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.

Links

Discussion