Deleting Part Records
Function
You can use this command to delete part records from a specified directory.
Command Line Structure
- In Windows
obsutil clear [checkpoint_dir] [-u] [-d] [-c] [-config=xxx]
- In Linux or macOS
./obsutil clear [checkpoint_dir] [-u] [-d] [-c] [-config=xxx]
Examples
- Take the Windows OS as an example. Run the obsutil clear -u command to delete the part records of multipart upload tasks in the default directory.
obsutil clear -u Clear checkpoint files for uploading in folder [xxxxx] [==================================================================] 100.00% 0s Succeed files is: 1 Failed files is: 0
Parameter Description
Parameter |
Optional or Mandatory |
Description |
---|---|---|
checkpoint_dir |
Optional |
Indicates 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) |
User-defined configuration file for executing a command. For details about parameters that can be configured, see Parameter Description. |
![](https://support.huaweicloud.com/intl/en-us/ae-ad-1-utiltg-obs/public_sys-resources/note_3.0-en-us.png)
You must configure at least one among the u, d and c parameters.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot