If you no longer need objects in a bucket, delete them from the bucket to avoid incurring further fees.

Background information

You can delete a single object or multiple objects by using the OSS console. You can delete up to 100 objects at a time by using the console. You can select and delete objects in a more flexible manner. For more information about how to delete more than 100 objects at a time, see Delete objects in OSS Developer Guide.
Warning You cannot recover deleted objects. Exercise caution when you perform this operation.

Use the OSS console

To delete unnecessary objects by using the OSS console, perform the following steps:

  1. Log on to the OSS console.
  2. Click the target bucket.
    • New console: Click Buckets, and then click the name of the target bucket.
    • Old console: In the left-side navigation pane, click the name of the target bucket.
  3. Click the Files tab.
  4. Select one or multiple objects, and then choose Batch Operation > Delete.
    You can also choose More > Delete in the Actions column corresponding to the target object.
  5. In the Delete File message that appears, click OK.

Use ossbrowser

ossbrowser is a graphical object management tool for OSS. You can use ossbrowser to delete unnecessary objects. For more information, see Quick start.

Use ossutil

ossutil is a command-line tool for OSS. You can use ossutil to delete unnecessary objects. For more information, see rm.

Use APIs and SDKs

OSS provides APIs and SDKs for a variety of programming languages to facilitate secondary development. For more information, see the following topics: For more information about SDK examples for other programming languages, see Introduction.