Deleting the CORS Configuration of a Bucket
You can delete the cross-origin ressource sharing (CORS) configuration applied to a bucket.
Deleting the CORS Configuration of a Bucket Using AWS CLI
To delete the CORS configuration of a bucket, use the delete-bucket-cors command following this syntax:
$ aws s3api delete-bucket-cors \
--profile YOUR_PROFILE \
--bucket BUCKET \
--endpoint https://oos.eu-west-2.outscale.com
This command contains the following attributes that you need to specify:
-
(optional)
profile
: The named profile you want to use, created when configuring AWS CLI. For more information, see Installing and Configuring AWS CLI. -
bucket
: The name of the bucket whose CORS configuration you want to delete. -
endpoint
: The endpoint corresponding to the Region you want to send the request to.
The CORS configuration of the bucket is deleted.
Related Pages
AWS™ and Amazon Web Services™ are trademarks of Amazon Technologies, Inc or its affiliates in the United States and/or other countries.