Help Center/ Object Storage Service/ Tools Guide/ obsutil/ Bucket Commands/ Static Website Hosting/ Deleting the Static Website Hosting Configuration of a Bucket
Updated on 2026-09-20 GMT+08:00

Deleting the Static Website Hosting Configuration of a Bucket

Function

You can host static website resources such as HTML web pages, flash files, or audio and video files in an OBS bucket, so that you can provide these hosted resources using the bucket's website endpoint to end users. Typical use cases include:

  • Redirecting all requests to another website
  • Redirecting specific requests to another website

This API deletes the static website hosting configuration of the bucket.

Constraints

Command Line Structure

  • Windows
    obsutil website obs://bucket -method=delete [-config=xxx] [-e=xxx] [-i=xxx] [-k=xxx] [-t=xxx]
  • macOS or Linux
    ./obsutil website obs://bucket -method=delete [-config=xxx] [-e=xxx] [-i=xxx] [-k=xxx] [-t=xxx]

Examples

  • Take the Windows OS as an example. Run obsutil website obs://test-bucket -method=delete to delete the static website hosting configuration of bucket bucket.
    obsutil website obs://test-bucket -method=delete
    
    Start at 2024-09-30 07:59:28.8675681 +0000 UTC
    
    Delete website configuration succeed for bucket [test-bucket], requestId is [000001996F7D087A40149E6E68F39FC3]

Parameter Description

Parameter

Optional or Mandatory

Description

bucket

Mandatory

The bucket name

method

Mandatory

The method. Set this parameter to delete when deleting the static website hosting configuration of a bucket.

config

Optional (additional parameter)

The user-defined configuration file for executing the current command. For details about parameters that can be configured, see Configuration Parameters.

e

Optional (additional parameter)

The endpoint

i

Optional (additional parameter)

The user's AK

k

Optional (additional parameter)

The user's SK

t

Optional (additional parameter)

The user's security token

Helpful Links