Is there a custom runtime setting called performdeletefromstorage set to false perhaps? Thats what controls the mechanism so it should be set to Yes so it actually deletes the file from storage aswell. See https://docs.mendix.com/refguide/custom-settings/#commendixstoragePerformDeleteFromStorage
Hi Viktor, I think this is happening because of association with template and email. Change the delete behaviour to the below state. It might work.