All Products
Search
Document Center

Object Storage Service:DeleteBucketInventory

Last Updated:Jun 02, 2026

Deletes a specified inventory task from a bucket.

Usage notes

  • An Alibaba Cloud account has this permission by default. To perform this operation as a RAM user or by using STS, you must have the oss:DeleteBucketInventory permission.

  • A successful request returns HTTP status code 204.

Request syntax

DELETE /?inventory&inventoryId=list1 HTTP/1.1

Request elements

Element

Type

Required

Description

inventoryId

String

Yes

The ID of the inventory task to delete.

Examples

  • Sample request

      DELETE /?inventory&inventoryId=list1 HTTP/1.1
      Host: BucketName.oss.aliyuncs.com
      Date: Wed, 14 May 2014 02:11:22 GMT
      Authorization: signatureValue
  • Sample response

      HTTP/1.1 204 No Content
      x-oss-request-id: 56594298207FB3044385****
      Date: Wed, 14 May 2014 02:11:22 GMT
      Server: AliyunOSS

OSS SDKs

You can call this operation by using the following OSS SDKs:

ossutil

For information about the ossutil command that corresponds to the DeleteBucketInventory operation, see delete-bucket-inventory.

Error codes

Error code

HTTP status code

Description

InvalidRequest

400

The request is invalid.

AccessDenied

403

  • The request does not contain authentication information.

  • You are not authorized to perform this operation.