delete file, update file