# SheetValidation.remove Method

> SheetValidation.remove method in the TX Sheet Control JavaScript API for Node.js: 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 > JavaScript API > Node.js Server > SheetValidation > SheetValidation.remove Method
- **338 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/sheetvalidation/remove-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/sheetvalidation/remove-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/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/javascript-api/nodejs/sheetvalidation/llms-full.txt). Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

### Syntax

```javascript
owner.remove(id)
```

### 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.

```javascript
function applySheetValidationRemove(control) {
    const book = control.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/javascript-api/nodejs/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/javascript-api/nodejs/sheetvalidation/list-method/llms-full.txt)
- **Next:** [SheetValidation.set Method](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/sheetvalidation/set-method/llms-full.txt)
