You can call this operation to delete a specified inventory task of a bucket.
Note
- To call this operation, ensure that you have permissions to perform operations on the inventory tasks of the bucket. By default, the bucket owner has the permission to perform this operation. If you do not have the permission, apply for the permission from the bucket owner.
- If the request is successful, 204 is returned.
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
Error codes
Error code | HTTP status code | Description |
---|---|---|
InvalidRequest | 400 | The error message returned because the request is invalid. |
AccessDenied | 403 |
|