abort command is used to clear the generated incomplete multipart uploads.cos:ListMultipartUploads,cos:AbortMultipartUpload. For more authorizations, please refer to CAM-Enabled API../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/ |
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. |
bucket1 bucket./coscli abort cos://bucket1
picture folder in bucket1 bucket./coscli abort cos://bucket1/picture/
Feedback