Help Center/ Object Storage Service/ Tools Guide/ obsutil/ Bucket Commands/ Deleting the User-Defined Domain Name of a Bucket
Updated on 2026-09-20 GMT+08:00

Deleting the User-Defined Domain Name of a Bucket

Function

You can use this command to delete the user-defined domain name of a bucket.

Constraints

Command Line Structure

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

Examples

  • In Windows, run obsutil custom-domain obs://test-bucket -method=delete -cname=www.obs-example.com to delete the user-defined domain name www.obs-example.com of bucket test-bucket.
    obsutil custom-domain obs://test-bucket -method=delete -cname=www.obs-example.com 
    
    Start at 2024-09-30 07:59:28.8675681 +0000 UTC
    
    Delete customDomain configuration succeed for bucket [test-bucket], customDomain is [www.obs-example.com], requestId is [000001997659DBF940149DC69885F0E4]

Parameter Description

Parameter

Optional or Mandatory

Description

bucket

Mandatory

The bucket name

method

Mandatory

The method. Set it to delete when you delete the user-defined domain name of a bucket.

cname

Mandatory

The user-defined domain name to be deleted

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