Hi, have a try with the following codes:
Excel.Application myApp;
Excel.Workbook myWorkBook;
Excel.Worksheet myWorkSheet;
Excel.Range range;
myApp = new Excel.Application();
myWorkBook = myApp.Workbooks.Open("D:\\test.xls", 0, true, 5, "", "", true, Microsoft.Office.Interop.Excel.XlPlatform.xlWindows, "\t", false, false , 0, true, 1, 0);
myWorkSheet = (Excel.Worksheet)myWorkBook.Worksheets.get_Item(1);
range = (Excel.Range)myWorkSheet.Application.Rows[1, Type.Missing];
range.Select();
range.Delete(Excel.XlDirection.xlUp);
myWorkBook.Close(true);
myApp.Quit();
Note using Excel = Microsoft.Office.Interop.Excel; and release the object finally.
The following is a summary of some Excel skills you may use. Please have a check if you would like to.
Summarize C# Control Excel Skills[
^]