> For the complete documentation index, see [llms.txt](https://docs.tan.live/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tan.live/getting-started/developer-guide/nodes-and-validators/how-to-unstake-tan.md).

# 🔓How to Unstake TAN?

Learn how to safely and efficiently unstake TAN from the network, ensuring smooth transition and management of your staked assets.

## Unstake TAN

To remove your stake and free yourself from the validator node, initiate the unstaking process through the provided functionality on the TAN blockchain network. This process involves confirming the unstaking transaction to begin withdrawing your TAN tokens from the staking contract.

## How to Unstake TAN?

**Prerequisite:** Before proceeding with the staking contracts, ensure you have a fully synchronized full node running in the current blockchain state of TAN.

**Step 1: Clone the Repository from** [**GitHub**](https://github.com/0xPolygon/staking-contracts/tree/main)**.**

**Step 2: Open cloned repository in terminal and install dependencies navigate to the cloned `staking-contracts` directory from the `main` branch and run `npm i` to install dependencies.**

**Step 3:** To remove your stake and free yourself from the validator node, follow these command:

```
npm run unstake
```

Executing this command initiates the process to withdraw your TAN tokens from the staking contract. Monitor the blockchain for the completion of your unstaking request. Once finalized, your TAN tokens will be available for withdrawal into your wallet. This action releases your TAN from the staking.

## Conclusion

Unstaking TAN from the TAN network is a straightforward process that allows you to withdraw your stake from the validator node. By using the `npm run unstake` command, you initiate the unstaking transaction, freeing your TAN from the staking contract. Monitor the blockchain for confirmation, and once completed, withdraw your tokens into your wallet. This flexibility ensures you can manage your assets independently outside of the validator node, aligning with your evolving participation in the TAN blockchain network.
