All Products
Search
Document Center

Object Storage Service:Delete CORS rules

Last Updated:Mar 20, 2026

Deletes all cross-origin resource sharing (CORS) rules from a bucket.

Syntax

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

Parameters

ParameterTypeDescription
--bucketstringThe name of the bucket whose CORS rules you want to delete.
Note

For global flags, see Command-line options.

Example

The following command deletes all CORS rules from a bucket named examplebucket:

ossutil api delete-bucket-cors --bucket examplebucket