Before-delete "trigger"

Is it possible to perform any custom action right before data is removed based on retention policy? Sort of like before-delete RDBMS trigger?

Hmm I don’t think theres a tool that’s directly tied to the RP. However you can always look at the date that your bucket or database was created and create a flux task that operates just before data is about to be expired or downsampled.