Deleting a partially uploaded object
Written by
Updated at May 27, 2024
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
AWS CLI
API
- In the management console
, select the folder you want to delete an object from. - Select Object Storage.
- Select a bucket that contains a partially uploaded object.
- Hover over the yellow field next to the object count.
- Click the Show uploads button that appears.
- Mark incomplete uploads you want to delete.
- Click Delete.
- Confirm the deletion.
In the management console, information about the number of objects in a bucket and the used space is updated with a few minutes' delay.
If you do not have the AWS CLI yet, install and configure it.
Run the following command:
aws --endpoint-url=https://storage.yandexcloud.net s3api abort-multipart-upload \
--bucket <bucket_name> \
--key <object_key> \
--upload-id <upload_ID>
If you don't know the upload ID (number
), find it in the list of uploads.
aws --endpoint-url=https://storage.yandexcloud.net s3api list-multipart-uploads \
--bucket <bucket_name>
Use the abortUpload S3 API method.