At present files that have been harvested from a node and stored on S3 don;'t get deleted if the corresponding node is deleted. Resulting in the S3 buckets getting clogged up with stray junk.

Should deleting be another phase/action in media_mover?

Comments

arthurf’s picture

There is actually a hook for this, and unfortunately, it hasn't been implemented in the s3 module yet. I've been a bit hesitant to implement this as deleting lots of files is always somewhat scary :) I'll put it on the list of items to address- clearly it needs to be put in place.

budda’s picture

Any progress on this?

arthurf’s picture

I've completed much of the leg work that is needed to do this. There are two parts that are left, the actual delete in s3 and making sure that the code gets called on the node delete and on the file delete via media mover