Deletes a specific inventory of a bucket.
Usage notes
By default, an Alibaba Cloud account has the permissions to delete a specific inventory of a bucket. If you want to use a RAM user or Security Token Service (STS) to delete a specific inventory of a bucket, you must have the oss:DeleteBucketInventory permission. For more information, see Attach a custom policy to a RAM user.
Command syntax
ossutil api delete-bucket-inventory --bucket value --inventory-id value [flags]Parameter | Type | Description |
--bucket | string | The name of the bucket whose inventory you want to delete. |
--inventory-id | string | The ID of the inventory that you want to delete. |
The delete-bucket-inventory command corresponds to the DeleteBucketInventory operation. For more information about the parameters in the DeleteBucketInventory operation, see DeleteBucketInventory.
For more information about supported global command-line options, see Global command-line options.
Examples
Run the following command to delete an inventory named report1 of a bucket named examplebucket:
ossutil api delete-bucket-inventory --bucket examplebucket --inventory-id report1