# SheetValidation.remove Method

> SheetValidation.remove method in the TX Sheet Control TypeScript API for the browser: Removes rules by identity, or all rules when no identity is supplied.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Sheet Control > API Reference > TypeScript API > Browser Editor > SheetValidation > SheetValidation.remove Method
- **373 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetvalidation/remove-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetvalidation/remove-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetvalidation/remove-method/llms-full.txt

---

Removes rules by identity, or all rules when no identity is supplied.

Owner: [SheetValidation](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetvalidation/llms-full.txt). Package: `@txtextcontrol/tx-sheet-control`. Version: **2.0.0**.

### Syntax

```typescript
remove(id?: string): void
```

### Parameters

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `id` | `string \| undefined` | Yes | Stable identity in the owning document/collection. |

### Return Value

`void`.

### Examples

Use a fresh sample workbook for this example. In the browser pass editor.workbook; in Node.js pass the server control. Document-bound objects are obtained from that same owner.

```typescript
import type { Workbook } from '@txtextcontrol/tx-sheet-control';

function applySheetValidationRemove(book: Workbook) {
    const sheetValidation = book.sheets.at(0).validation;

    sheetValidation.remove();
}
```

### Remarks

Use this member on an object from the current document. Reacquire document-bound handles after replacement/deletion. Validate arguments against the declared types and documented bounds; handle exceptions or rejected promises.

### See Also

- [SheetValidation Class](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetvalidation/llms-full.txt)
- [Data Validation](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/validation/llms-full.txt)

---

## Nearby

- **Previous:** [SheetValidation.list Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetvalidation/list-method/llms-full.txt)
- **Next:** [SheetValidation.set Method](https://docs.textcontrol.com/tx-sheet-control/reference/typescript-api/browser/sheetvalidation/set-method/llms-full.txt)
