Dataverse storage costs can be expensive. If you want to automatically delete a file stored in a Dataverse file column that is no longer required, here’s how to do it
In this example, whenever the status of a row in the ‘Appointments’ table is changed to cancelled, which is a change that would typically be made in a Power App, I want to delete a file stored in the ‘Agenda’ column because once the appointment is cancelled there is no need to retain the agenda
The flow is automated and has a Dataverse trigger. I’ve set the trigger to fire every time a row of the Appointment table is modified. To narrow it down to fire only when the Status of a row is changed to cancelled, the following OData code is added against Filter rows (check out the full flow at the bottom of the page)