# GammaDepositNotEmpty (/docs/errors/chain/GammaDepositNotEmpty)

Only an empty gamma deposit can be closed. Moving its whole balance with `move_gamma` closes it; once its hotkey has spent it to zero, close it.

Declared by the `SubtensorModule` pallet; it classifies to the semantic code [`invalid_argument`](/docs/errors/invalid-argument).

Declared at [`pallets/subtensor/src/macros/errors.rs#L481`](/code/pallets/subtensor/src/macros/errors.rs#L481).

## Remediation [#remediation]

Move the balance out with `btcli gamma move --amount-gamma all`, which closes the deposit, or close it once its hotkey has spent it

The same explanation is available in the terminal: `btcli explain GammaDepositNotEmpty`.
