remove file, before saving it