// Create a new workbook Workbook workbook = new Workbook(); IWorksheet worksheet = workbook.getWorksheets().add(); //workbook must contain one visible worksheet at least, if delete the one visible worksheet, it will throw exception. worksheet.delete(); // Save to an excel file workbook.save("DeleteWorksheet.xlsx");