# Delete Sheet Workbook (preview)

> Delete Sheet Workbook activity that deletes a sheet from an Excel workbook.

`UiPath.Excel.Activities.DeleteSheet`

## Description

Deletes a sheet from an Excel workbook. This is the cross-platform equivalent of the [Delete Sheet](https://docs.uipath.com/activities/other/latest/productivity/delete-sheet-x) Windows activity.

:::note
This activity does not support `.xls` files.
:::

## Project compatibility

Windows | Cross-platform

## Properties

### Common

* **DisplayName** - The name displayed for the activity in the Designer panel.

### Input

* **File** - The full path of the resource workbook. To switch to a local path, select the plus icon, and then **Use Local File**. The current field changes to **File (local path)**, where you can provide the full path of the workbook.
* **Sheet Name** - The name of the sheet to delete. This field is required.

### Options

* **Password** - The password of the workbook, if necessary.

### Use Workbook

* **Workbook** - The existing workbook to use instead of a file path.

## Notes

The activity fails with an error in the following cases:

* The sheet does not exist.
* The sheet is the only sheet in the workbook. A workbook must always have at least one sheet.
* Deleting the sheet would leave the workbook without a visible sheet, for example, when you delete the last visible sheet and all the other sheets are hidden. Excel cannot open a workbook that has no visible sheet.
