Cleaning up files in MDM after changes