All Products
Search
Document Center

Object Storage Service:delete-bucket-policy

Last Updated:Feb 28, 2026

Deletes the bucket policy from an Object Storage Service (OSS) bucket.

Prerequisites

Before you begin, ensure that you have:

Command syntax

ossutil api delete-bucket-policy --bucket value [flags]

Parameters

Parameter

Type

Required

Description

--bucket

string

Yes

The name of the target bucket.

Note

Examples

Delete the bucket policy from a bucket named examplebucket:

ossutil api delete-bucket-policy --bucket examplebucket

Output

This command returns no output on success.