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