delete file before upgrade