Delete CORS rules

更新时间:
复制 MD 格式

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