I have web storage set up for some files in Amazon S3. I'm using its PHP SDK to manage these files. I have an automation script running to delete files from a certain bucket after a certain period of time. I've just realized that I don't believe it's actually deleting the files, but replacing them with a delete marker. When I use a program like Transmission (Mac) to view the bucket, it lists all files since 2013 when I set up the script. But if I go to the management interface in a browser, it only lists files as far back as the cutoff I have set in the script.
My question is: am I paying much more money for storage of these markers when I have no need for actually keeping any of these files? And how do I permanently delete these files? Everything I've found is that this is only an issue with versioned buckets, but this particular bucket is not versioned. According to the documentation, I need to include the version ID of the object in the delete call to delete the marker, but at this point, how do I retrieve that information since 'listObjects' does not return these.
If I use Transmission to pull down a 'deleted' file, the file still opens and functions as if it were never deleted.
ListObjectVersions
which will show you the objects and version ids.