MDL-30619 mod_data: fixed deletion of files on reset