tencent cloud

Clearing Incomplete Multipart Uploads - abort
Last updated: 2025-05-09 18:27:39
Clearing Incomplete Multipart Uploads - abort
Last updated: 2025-05-09 18:27:39
The abort command is used to clear the generated incomplete multipart uploads.
Note:
If you need to use this command, when you perform authorization policy, set action to cos:ListMultipartUploads,cos:AbortMultipartUpload. For more authorizations, please refer to CAM-Enabled API.

Command Syntax

./coscli abort cos://<bucket-name>[/prefix/] [flag]
abort includes the following parameters:
Parameter Format
Description
Example
cos://<bucket-name>/<key>
Specifies the target object in the bucket, which is accessible by using the bucket alias or bucket name configured in the configuration file as detailed in Download and Installation Configuration. If you use the bucket name for access, you also need to include the endpoint flag.
Access with the bucket alias: cos://example-alias
Access with the bucket name: cos://examplebucket-1250000000
/prefix/
Specifies a directory (optional).
/picture/
The abort command contains the following optional flags:
Flag Abbreviation
Flag Name
Description
-h
--help
Views the usage of this command.
None
--include
Includes specific objects
None
--exclude
Excludes files with a specific pattern
None
--fail-output
This option determines whether to enable error output when cleaning up file fragments (enabled by default true). If enabled, file fragment cleanup failures will be recorded in the specified directory (if not specified, defaults to ./coscli_output). If disabled, only the number of cleanup failures will be output to the console.
None
--fail-output-path
This option is used to specify the error output folder for recording during file fragment cleanup. By providing a custom folder path, you can control the location and name of the error output folder. If this option is not set, the default error log folder ./coscli_output will be used.
Note:
For other common options of this command (such as switching bucket and user account), see Common Options.

Examples

Clearing all incomplete multipart uploads in bucket1 bucket

./coscli abort cos://bucket1

Clearing all incomplete multipart uploads in picture folder in bucket1 bucket

./coscli abort cos://bucket1/picture/

Was this page helpful?
You can also Contact Sales or Submit a Ticket for help.
Yes
No

Feedback