delete files from s3

applied patch to delete from S3. I haven't had time to test it.