Deletes a specific bucket inventory configuration.
Usage notes
By default, an Alibaba Cloud account has the permissions to delete a specific inventory of a bucket. To grant a RAM user or Security Token Service (STS) identity the ability to delete a bucket inventory, attach a policy that includes 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. |
This command maps to the DeleteBucketInventory API operation. For the full parameter reference, see DeleteBucketInventory. For supported global flags, see Global command-line options.
Examples
Delete the inventory named report1 from examplebucket:
ossutil api delete-bucket-inventory --bucket examplebucket --inventory-id report1