Yandex Cloud
Search
Contact UsGet started
  • Blog
  • Pricing
  • Documentation
  • All Services
  • System Status
    • Featured
    • Infrastructure & Network
    • Data Platform
    • Containers
    • Developer tools
    • Serverless
    • Security
    • Monitoring & Resources
    • ML & AI
    • Business tools
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Customer Stories
    • Gateway to Russia
    • Cloud for Startups
    • Education and Science
  • Blog
  • Pricing
  • Documentation
Yandex project
© 2025 Yandex.Cloud LLC
Yandex Object Storage
    • All tutorials
      • Uploading an object
      • Multipart upload of an object
      • Get a list of bucket objects
      • Getting information about an object
      • Downloading an object
      • Restoring an object's version
      • Renaming and moving objects
      • Copying objects
      • Getting a public link to an object
      • Configuring an object lock
      • Deleting an object
      • Deleting all objects
      • Deleting a partially uploaded object
      • Editing an object's ACL
      • Managing object labels
      • Managing object custom metadata
  • Terraform reference
  • Monitoring metrics
  • Audit Trails events
  • Bucket logs
  • Release notes
  • FAQ
  1. Step-by-step tutorials
  2. Objects
  3. Deleting a partially uploaded object

Deleting a partially uploaded object

Written by
Yandex Cloud
Improved by
Tania L.
Updated at May 5, 2025

You can upload an object in parts using multipart upload.

Note

To automatically delete partially loaded objects in Object Storage, configure a lifecycle rule.

To manually delete a partially uploaded object:

Management console
Yandex Cloud CLI
AWS CLI
API
  1. In the management console, select Object Storage from the list of services and go to the bucket that contains a partially uploaded object.
  2. In the left-hand panel, select Objects.
  3. To see all versions of objects in the list, enable Show versions to the right of the object search field in the bucket.
  4. Hover over the yellow field next to the object count.
  5. Click Show uploads as soon as it appears.
  6. Select incomplete uploads you want to delete.
  7. Click Delete.
  8. Confirm the deletion.

In the management console, the information about the number of objects and storage space used in the bucket is updated with a few minutes' delay.

If you do not have the Yandex Cloud CLI yet, install and initialize it.

The folder specified when creating the CLI profile is used by default. To change the default folder, use the yc config set folder-id <folder_ID> command. You can specify a different folder using the --folder-name or --folder-id parameter.

  1. Get a list of incomplete multipart uploads:

    1. See the description of the CLI command to get a list of incomplete multipart uploads in a bucket:

      yc storage s3api list-multipart-uploads --help
      
    2. Get a list of buckets in the default folder:

      yc storage bucket list
      

      Result:

      +------------------+----------------------+-------------+-----------------------+---------------------+
      |       NAME       |      FOLDER ID       |  MAX SIZE   | DEFAULT STORAGE CLASS |     CREATED AT      |
      +------------------+----------------------+-------------+-----------------------+---------------------+
      | first-bucket     | b1gmit33ngp6******** | 53687091200 | STANDARD              | 2022-12-16 13:58:18 |
      +------------------+----------------------+-------------+-----------------------+---------------------+
      
    3. Run the command below by specifying the bucket name:

      yc storage s3api list-multipart-uploads \
        --bucket <bucket_name>
      

      Result:

      bucket: first-bucket
      max_uploads: "1000"
      uploads:
        - key: video.mp4
          upload_id: 000629B7********
          initiator:
            id: ajeol2afu1js********
            display_name: ajeol2afu1js********
          owner:
            id: ajeol2afu1js********
            display_name: ajeol2afu1js********
          storage_class: STANDARD
          initiated_at: "2024-12-20T18:05:07.312Z"
        - key: video1.mp4
          upload_id: 000629B7********
          initiator:
            id: ajeol2afu1js********
            display_name: ajeol2afu1js********
          owner:
            id: ajeol2afu1js********
            display_name: ajeol2afu1js********
          storage_class: STANDARD
          initiated_at: "2024-12-20T18:20:15.747Z"
      request_id: 75dbac97********
      

      Save the multipart upload ID (uploads.upload_id) value of the partially uploaded object you want to delete. You will need this value in the next step.

      For more information about the yc storage s3api list-multipart-uploads command, see the CLI reference.

  2. Delete the partially uploaded object:

    1. See the description of the CLI command to delete a partially uploaded object:

      yc storage s3api abort-multipart-upload --help
      
    2. Run this command:

      yc storage s3api abort-multipart-upload \
        --bucket <bucket_name> \
        --key <object_key> \
        --upload-id <multipart_upload_ID>
      

      Where:

      • --bucket: Name of the bucket in which you want to delete the partially uploaded object.
      • --key: Key of the object to delete.
      • --upload-id: Multipart upload ID obtained in the previous step.

      Result:

      request_id: 573ea6e2********
      

      For more information about the yc storage s3api abort-multipart-upload command, see the CLI reference.

If you do not have the AWS CLI yet, install and configure it.

  1. Get a list of incomplete multipart uploads:

    1. Get a list of available buckets:

      aws s3api list-buckets \
        --endpoint-url=https://storage.yandexcloud.net 
      

      Result:

      {
        "Buckets": [
          {
            "Name": "new-bucket",
            "CreationDate": "2024-12-20T17:48:17+00:00"
          },
          {
            "Name": "first-bucket",
            "CreationDate": "2023-12-28T12:20:49.538000+00:00"
          }
        ],
        "Owner": {
          "DisplayName": "",
          "ID": ""
        }
      }
      
    2. Run the command below by specifying the bucket name:

      aws s3api list-multipart-uploads \
        --endpoint-url=https://storage.yandexcloud.net \
        --bucket <bucket_name>
      

      Result:

      {
        "Uploads": [
          {
            "UploadId": "000629C2********",
            "Key": "video.mp4",
            "Initiated": "2024-12-21T07:40:03.562000+00:00",
            "StorageClass": "STANDARD",
            "Owner": {
              "DisplayName": "ajegtlf2q28a********",
              "ID": "ajegtlf2q28a********"
            },
            "Initiator": {
              "ID": "ajegtlf2q28a********",
              "DisplayName": "ajegtlf2q28a********"
            }
          },
          {
            "UploadId": "000629C2********",
            "Key": "video1.mp4",
            "Initiated": "2024-12-21T07:42:39.492000+00:00",
            "StorageClass": "STANDARD",
            "Owner": {
              "DisplayName": "ajegtlf2q28a********",
              "ID": "ajegtlf2q28a********"
            },
            "Initiator": {
              "ID": "ajegtlf2q28a********",
              "DisplayName": "ajegtlf2q28a********"
            }
          }
        ],
        "RequestCharged": null
      }
      

      Save the multipart upload ID (Uploads.UploadId) value of the partially uploaded object you want to delete. You will need this value in the next step.

  2. Delete the partially uploaded object:

    aws s3api abort-multipart-upload \
      --endpoint-url=https://storage.yandexcloud.net \
      --bucket <bucket_name> \
      --key <object_key> \
      --upload-id <multipart_upload_ID>
    

    Where:

    • --bucket: Name of the bucket in which you want to delete the partially uploaded object.
    • --key: Key of the object to delete.
    • --upload-id: Multipart upload ID obtained in the previous step.

To get a list of multipart uploads, use the listUploads S3 API method.

To delete a partially uploaded object, use the abortUpload S3 API method.

Was the article helpful?

Previous
Deleting all objects
Next
Editing an object's ACL
Yandex project
© 2025 Yandex.Cloud LLC