Removes a sheet from the Excel workbook by name. Allows for the deletion of a specified sheet within the workbook, facilitating dynamic management of the workbook's content and structure.
public void RemoveSheet(
string sheetName
)
sheetName
A string specifying the name of the sheet to be removed. The sheet name must exactly match an existing sheet in the workbook, including case sensitivity.