Whenever files are written to S3 for processing, they're removed once processing finishes or an exception is encountered. However, if the service is stopped or an uncaught exception is thrown, it's possible that files may be left in S3. It's recommended that you set up a policy on the S3 bucket so that objects that are older than a day are removed from the bucket.
To do this, you can create a lifecycle rule that expires all versions of objects after 1 day, and then permanently deletes them one day after that.
See the AWS site for more details on Object lifecycle management.