Files
doc-exports/docs/obs/tool-obsutil/obs_11_0024.html
weihongmin1 c4291b1dd5 OBS Util 0309 Verion
Reviewed-by: Sabelnikov, Dmitriy <dmitriy.sabelnikov@t-systems.com>
Co-authored-by: weihongmin1 <weihongmin1@huawei.com>
Co-committed-by: weihongmin1 <weihongmin1@huawei.com>
2026-03-27 12:15:19 +00:00

6.5 KiB

Deleting Part Records

Function

You can use this command to delete part records from a specified directory.

Command Line Structure

  • Windows
    obsutil clear [checkpoint_dir] [-u] [-d] [-c] [-config=xxx] 
  • macOS or Linux
    ./obsutil clear [checkpoint_dir] [-u] [-d] [-c] [-config=xxx] 

Examples

  • In Windows, run obsutil clear -u to delete the checkpoint files for multipart uploads in the default directory.
    obsutil clear -u
    
    Clear checkpoint files for uploading in folder [xxxxx]
    Start at 2024-10-08 01:49:37.6541204 +0000 UTC
    [==================================================================] 100.00% 0s
    Succeed files is:   1         Failed files is:    0

Parameter Description

Parameter

Optional or Mandatory

Description

checkpoint_dir

Optional

The folder where the part records reside. The default value is .obsutil_checkpoint, the same subfolder where obsutil commands reside.

u

Optional (additional parameter)

Deletes the part records of all multipart upload tasks.

NOTE:

At the same time, the system attempts to delete the multipart upload tasks in the part records.

d

Optional (additional parameter)

Deletes the part records of all multipart download tasks.

NOTE:

At the same time, the system attempts to delete the fragments in the part records.

c

Optional (additional parameter)

Deletes the part records of all multipart copy tasks.

NOTE:

At the same time, the system attempts to delete the multipart copy tasks in the part records.

config

Optional (additional parameter)

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

You must configure at least one among the u, d and c parameters.