delete data then delete file