Delete an image style from a bucket.
Usage notes
Alibaba Cloud accounts can delete image styles by default. RAM users and Security Token Service (STS) users require the oss:DeleteStyle permission. Grant this permission by following 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 |
Bucket name. |
|
--style-name |
string |
Image style name. |
Note
-
The delete-style command maps to the DeleteStyle API, which documents all available parameters.
-
All flags listed in Global command-line options are supported.
Examples
-
Delete the image style
imageStylefrom the bucketexamplebucket:ossutil api delete-style --bucket examplebucket --style-name imageStyle