All Products
Search
Document Center

:delete-style

Last Updated:Aug 28, 2024

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.

Note
  • 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 named examplebucket:

    ossutil api delete-style --bucket examplebucket --style-name imageStyle