Kajal Pareek, it didn't work because you apparently didn't overwrite the file after deleting the row. To overwrite the file, use XLSX.writeFile(workbook, filename);