# Deactivating & Withdrawing

## Deactivating

Deactivating a stake account begins the unstaking process. The account transitions to the **deactivating** state and stops earning rewards after the current epoch ends. Once the epoch boundary passes, the account becomes **inactive** and the SOL can be withdrawn.

### Full deactivation

Click the deactivate action on an active stake account. The entire account enters the deactivating state.

### Partial deactivation

You can deactivate a portion of your stake. Enter a specific SOL amount and the app will split that amount into a new stake account and deactivate only the split portion. Your remaining stake stays active and keeps earning.

### Cancel deactivation

If you change your mind before the epoch ends, you can cancel a deactivation. This re-delegates the account to its validator and returns it to the activating state.

### Batch deactivate

If you have multiple active stake accounts and want to unstake everything, use the **"Deactivate All"** batch action. This deactivates all active accounts in a single flow.

## Instant Unstake

If you don't want to wait for the epoch cooldown, you can use **Instant Unstake** on any active stake account. This converts your stake to SOL immediately via the Sanctum liquidity pool, with a small fee. See [Conversions & Instant Unstake](/stake-manager/conversions-and-instant-unstake.md) for details.

## Withdrawing

Once a stake account is **inactive**, you can withdraw the SOL back to your wallet.

Click the withdraw action on an inactive account. The SOL is transferred to your wallet and the stake account is closed.

### Batch withdraw

If you have multiple inactive accounts, use the **"Withdraw All"** batch action to withdraw from all of them at once. Locked accounts are automatically skipped.

## Epochs and timing

Solana operates on an epoch schedule. Epochs are roughly 2 days long. The Stake Manager shows the current epoch number, a progress bar, and an estimated countdown to the next epoch boundary.

Key timing considerations:

* **Activation**: Takes effect at the next epoch boundary
* **Deactivation**: Stops earning at the end of the current epoch, SOL becomes withdrawable after the epoch turns
* **Delegation changes**: Take effect at the next epoch boundary


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.lantern.one/stake-manager/deactivating-and-withdrawing.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
