I have to delete a sheet from the Excel file.
Here\'s my code snippet :
FileInputStream fileStream = new FileInputStream(destFile); POIFSFileSystem fsPo
After editing your workbook, you need to write it again. Try this:-
FileOutputStream output = new FileOutputStream(destFile); workbook.write(output); output.close();
Edit:- After writing it back, you can return your destFile.
destFile