All Products
Search
Document Center

Object Storage Service:delete-style

Last Updated:Jun 02, 2026

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

Examples

  • Delete the image style imageStyle from the bucket examplebucket:

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