Home Amazon Adds Object Expiration to S3 Files

Amazon Adds Object Expiration to S3 Files

Management of temporary files, logs and other items will be a bit easier on Amazon S3. The company has just added object expiration, which allows developers set up rules for the automated deletion of files stored in S3.

Amazon recently added multi-object deletion, which speeds up the deletion of objects from an S3 bucket. However, multi-object deletion is capped at 1,000 objects (per request) and doesn’t get rid of files automatically.

With object expiration, developers can add rules for deleting files with a specific prefix (like documents/ or photos/) and set the expiration period (in days) for objects.

Note that you should not assume that files will be immediately removed the instant the expiration date hits. Amazon says that there may be “a small lag between the expiration date and the date at which Amazon S3 removes an object.” Amazon says that it won’t charge for storage of objects that have expired, but the actual removal may not take place immediately.

Amazon also says that buckets that are version-enabled can’t have object expiration as well. To start using the feature, check out the Working with Amazon S3 Objects developer guide on the AWS Documentation site.

About ReadWrite’s Editorial Process

The ReadWrite Editorial policy involves closely monitoring the tech industry for major developments, new product launches, AI breakthroughs, video game releases and other newsworthy events. Editors assign relevant stories to staff writers or freelance contributors with expertise in each particular topic area. Before publication, articles go through a rigorous round of editing for accuracy, clarity, and to ensure adherence to ReadWrite's style guidelines.

Get the biggest tech headlines of the day delivered to your inbox

    By signing up, you agree to our Terms and Privacy Policy. Unsubscribe anytime.

    Tech News

    Explore the latest in tech with our Tech News. We cut through the noise for concise, relevant updates, keeping you informed about the rapidly evolving tech landscape with curated content that separates signal from noise.

    In-Depth Tech Stories

    Explore tech impact in In-Depth Stories. Narrative data journalism offers comprehensive analyses, revealing stories behind data. Understand industry trends for a deeper perspective on tech's intricate relationships with society.

    Expert Reviews

    Empower decisions with Expert Reviews, merging industry expertise and insightful analysis. Delve into tech intricacies, get the best deals, and stay ahead with our trustworthy guide to navigating the ever-changing tech market.