Disables static website hosting for a bucket and deletes the redirection rules of the bucket.
Usage notes
By default, an Alibaba Cloud account has the permissions to disable static website hosting for a bucket and delete the redirection rules of the bucket. If you want to disable static website hosting for a bucket and delete the redirection rules of the bucket by using a RAM user or Security Token Service (STS), you must have the oss:DeleteBucketWebsite permission. For more information, see Attach a custom policy to a RAM user.
Command syntax
ossutil api delete-bucket-website --bucket value [flags]
|
Parameter |
Type |
Description |
|
--bucket |
string |
The name of the bucket. |
-
The delete-bucket-website command corresponds to the DeleteBucketWebsite operation. For more information about the parameters in the DeleteBucketWebsite operation, see DeleteBucketWebsite.
-
For more information about supported global command-line options, see Global command-line options.
Examples
Run the following command to disable static website hosting for a bucket named examplebucket and delete the redirection rules of the bucket:
ossutil api delete-bucket-website --bucket examplebucket