# SheetProtection.unprotect Method

> SheetProtection.unprotect method in the Node.js JavaScript API: Removes protection after verifying its password, including modern imported Excel verifiers.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Method
- **Path:** TX Sheet Control > API Reference > JavaScript API > Node.js Server > SheetProtection > SheetProtection.unprotect Method
- **392 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/sheetprotection/unprotect-method/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/sheetprotection/unprotect-method/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/sheetprotection/unprotect-method/llms-full.txt

---

Removes protection after verifying its password, including modern imported Excel verifiers.

Owner: [SheetProtection](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/sheetprotection/llms-full.txt). Package: `@txtextcontrol/tx-sheet-control-server`. Version: **2.0.0**.

### Syntax

```javascript
await owner.unprotect(password)
```

### Parameters

| Parameter | Type | Optional | Description |
|---|---|---|---|
| `password` | `string \| undefined` | Yes | Value matching password's declared type and the owning object's validation rules. |

### Return Value

`Promise<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
async function applySheetProtectionUnprotect(control) {
    const book = control.workbook;
    const sheetProtection = book.sheets.at(0).protection;
    await sheetProtection.unprotect('sample-edit-password');
}
```

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

- [SheetProtection Class](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/sheetprotection/llms-full.txt)
- [Worksheet Protection](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/protection/llms-full.txt)

---

## Nearby

- **Previous:** [SheetProtection.sheet Property](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/sheetprotection/sheet-property/llms-full.txt)
- **Next:** [SheetValidation Class](https://docs.textcontrol.com/tx-sheet-control/reference/javascript-api/nodejs/sheetvalidation/llms-full.txt)
