Deleting a partially uploaded object
Written by
Updated at November 5, 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 Object Storage from the list of services and go to the bucket that contains a partially uploaded object. - In the left-hand panel, select
Objects. - Go go the right of the search object in a bucket field and enable Show versions to see all versions of objects.
- 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 do not 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.