MDL-30619 mod_data: ensure files are deleted