Deleting an Object
Because all objects in your Amazon S3 bucket incur storage costs, you should delete objects that you no longer need. If you are collecting log files, for example, it's a good idea to delete them when they're no longer valuable.
This section explains how to use the Amazon S3 console to delete an object.
To delete an object
Sign in to the AWS Management Console and open the Amazon S3 console at https://console.aws.amazon.com/s3/.
In the Objects and Folders list, right-click the object that you want to delete, and then click Delete.
When a confirmation message appears, click OK.
Deleting Objects by using Lifecycle Configuration Management
You can use Amazon S3 lifecycle configuration rules to schedule automatic deletions. For example, you might want to retain log files for 30 days, after which you want to delete them.
Amazon S3 manages object lifetimes with a lifecycle configuration, which is assigned to a
bucket and defines rules for individual objects. You can, for example, apply a lifecycle
configuration rule to all objects that begin with the prefix
to specify that Amazon S3 will delete such objects after 30 days. For more information, see
Managing Lifecycle Configuration.