delete file and update