> ## Documentation Index
> Fetch the complete documentation index at: https://help.nops.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Abort Incomplete S3 Multipart Uploads

> Add an S3 lifecycle rule that aborts multipart uploads left incomplete for more than 7 days.

When a multipart upload is started but never completed or aborted, the uploaded parts stay in the bucket and are billed as storage, but they are not visible as objects. Failed or interrupted uploads can leave large amounts of hidden data behind. nOps looks for buckets holding incomplete uploads older than 7 days and estimates the saving from a lifecycle rule that cleans them up.

| | |
| - | - |
| **Cloud** | AWS |
| **Category** | Storage |
| **Service** | Amazon S3 |
| **Action** | Modify |
| **Effort** | Low |
| **Source** | nOps |

## Why it matters

These parts never appear in object listings, so they can grow for years without anyone noticing.

## How nOps finds it

nOps uses S3 Storage Lens metrics for each bucket: the bytes held by incomplete multipart uploads older than 7 days. The saving is that storage at the bucket's billed Standard storage rate.

## Before you start

S3 Storage Lens metrics for the bucket, and permission to update lifecycle rules (`s3:GetLifecycleConfiguration`, `s3:PutLifecycleConfiguration`).

## How to implement

1. Save the bucket's current lifecycle rules: `aws s3api get-bucket-lifecycle-configuration --bucket BUCKET`.
2. Add a rule with **Delete expired object delete markers or incomplete multipart uploads → Incomplete multipart uploads → 7 days** (`AbortIncompleteMultipartUpload` with `DaysAfterInitiation` 7), keeping every existing rule.
3. Write back the full merged configuration with `put-bucket-lifecycle-configuration`, since it replaces every rule.
4. Update Terraform or CloudFormation with the same rule.
5. Check in Storage Lens that the incomplete-upload bytes fall over the following days.

## Risks and considerations

* Completed objects are never affected.
* Uploads older than 7 days are aborted and cannot be resumed. If you have uploads that legitimately take longer, choose a longer period.
* To roll back, restore the saved lifecycle rules. Uploads already aborted cannot be recovered.

## FAQs

> [accordion] Why can't I see these parts in the bucket?
>
> Parts of an unfinished upload are not objects. You can list them with `aws s3api list-multipart-uploads`.

## Related

* [Expire Noncurrent S3 Object Versions](https://help.nops.io/inform/supported-recommendations/expire-noncurrent-s3-object-versions)
* [Switch S3 Bucket to Intelligent-Tiering](https://help.nops.io/inform/supported-recommendations/switch-s3-bucket-to-intelligent-tiering)
* [Supported recommendations](https://help.nops.io/inform/supported-recommendations.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.