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

Deleting the Lifecycle Configuration of a Bucket

Function

You can use this command to delete the lifecycle configuration of a bucket.

Command Line Structure

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

Examples

  • In Windows, run obsutil lifecycle obs://bucket -method=delete to delete the lifecycle configuration of bucket bucket.
    obsutil lifecycle obs://bucket -method=delete
    
    Start at 2024-09-30 08:09:29.6396262 +0000 UTC
    
    Delete lifecycle rules succeed, requestId is [04050000016836C5DA6FB21F14A2A0C0]

Parameter Description

Parameter

Optional or Mandatory

Description

bucket

Mandatory

The bucket name

method

Mandatory

The method. Set this parameter to delete when deleting the lifecycle configuration of a bucket.

bucket-cname

Optional (additional parameter)

The user-defined domain name bound to the bucket

NOTE:

This parameter is only supported by obsutil 5.7.9 and later.

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