El contenido no se encuentra disponible en el idioma seleccionado. Estamos trabajando continuamente para agregar más idiomas. Gracias por su apoyo.

Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Deleting a Multipart Upload Task

Updated on 2025-02-10 GMT+08:00

Function

  • You can use this command to delete a multipart upload task in a specified bucket by using the multipart upload ID.
  • You can also use this command to delete multipart upload tasks in batches based on a specified object name prefix.

Command Line Structure

  • In Windows
    • Deleting a single multipart upload task
      obsutil abort obs://bucket/key -u=xxx [-f] [-fr] [-o=xxx] [-config=xxx] 
    • Deleting multipart upload tasks in batches
      obsutil abort obs://bucket[/key] -r [-f] [-o=xxx] [-j=1] [-config=xxx] 
  • In Linux or macOS
    • Deleting a single multipart upload task
      ./obsutil abort obs://bucket/key -u=xxx [-f] [-fr] [-o=xxx] [-config=xxx] 
    • Deleting multipart upload tasks in batches
      ./obsutil abort obs://bucket[/key] -r [-f] [-o=xxx] [-j=1] [-config=xxx] 

Examples

  • Take the Windows OS as an example. Run the obsutil abort obs://bucket-test/key -u=xxx -f command to delete a single multipart upload task.
    obsutil abort obs://bucket-test/key -u=xxx -f
    
    Start at 2024-10-08 01:25:55.6771288 +0000 UTC
    
    [--------------------------------------------------] 100.00% tps:0.00 1/1 106ms
    Succeed count:      1         Failed count:       0
    Metrics [max cost:54 ms, min cost:54 ms, average cost:54.00 ms, average tps:8.77]
    
    Task id: 4972589c-c775-41be-a288-bbee3edaaee9
  • Take the Windows OS as an example. Run the obsutil abort obs://bucket-test -r -f command to delete all multipart upload tasks in the bucket in batches.
    obsutil abort obs://bucket-test -r -f
    Start at 2024-10-08 01:28:29.1980739 +0000 UTC
    
    [-----------------------------------------------] 100.00% tps:2924.55 3/3 202ms
    Succeed count:      3         Failed count:       0
    Metrics [max cost:148 ms, min cost:61 ms, average cost:113.33 ms, average tps:14.63]
    
    Task id: cd2fd08e-fc31-47d9-b4b0-9f9a3376435f

Parameter Description

Parameter

Optional or Mandatory

Description

bucket

Mandatory

Bucket name

key

Mandatory for deleting a multipart upload task.

Optional for deleting multipart upload tasks in batches.

Indicates the object name involved in a multipart upload task to be deleted, or the name prefix of the objects involved in multipart upload tasks to be deleted in batches.

NOTE:

If this parameter is left blank when deleting multipart upload tasks in batches, all multipart upload tasks in the bucket are deleted.

u

Mandatory for deleting a single multipart upload task (additional parameter)

ID of the multipart upload task to be deleted

NOTE:

You can obtain the value of this parameter from Listing Multipart Upload Tasks.

fr

Optional for deleting a single multipart upload task (additional parameter)

Generates an operation result list when deleting a multipart upload task.

f

Optional (additional parameter)

Runs in force mode.

r

Mandatory for deleting multipart upload tasks (additional parameter)

Deletes multipart upload tasks in batches based on a specified object name prefix.

j

Optional for deleting multipart upload tasks (additional parameter)

Indicates the maximum number of concurrent tasks for deleting multipart uploads in batches. The default value is the value of defaultJobs in the configuration file.

NOTE:

The value is ensured to be greater than or equal to 1.

o

Optional (additional parameter)

Indicates the folder where operation result lists reside. After the command is executed, result lists (possibly including success and failure files) are generated in the folder. The default value is .obsutil_output, the subfolder in the home directory of the user who executes obsutil commands.

NOTE:
  • The naming rule for result lists is as follows: abort_{succeed | failed}_report_time_TaskId.txt
  • By default, the maximum size of a single result list is 30 MB and the maximum number of result lists that can be retained is 1024. You can set the maximum size and number by configuring recordMaxLogSize and recordBackups in the configuration file.

config

Optional (additional parameter)

User-defined configuration file for executing the current command. To learn the parameters that can be configured in this file, see Configuration Parameters.

Response

Refer to Response for uploading an object.

Utilizamos cookies para mejorar nuestro sitio y tu experiencia. Al continuar navegando en nuestro sitio, tú aceptas nuestra política de cookies. Descubre más

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback