> ## Documentation Index
> Fetch the complete documentation index at: https://capy.sc/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# capy remove: Delete Secrets

> Delete one or more secret values from the active secret branch.

## Synopsis

```bash theme={null}
capy remove OLD_TOKEN
capy remove OLD_TOKEN LEGACY_KEY --yes
capy remove OLD_TOKEN --yes --json
```

## Description

`capy remove` removes named values from the active branch, then updates the encrypted `.env`, `keep.lock`, and the remote branch. It verifies that every supplied name exists on the active branch before it authenticates or changes anything.

Capy asks for confirmation. In a non-interactive context, or when `--json` is used, pass `--yes`. It refuses removal when local changes to the values being removed have not been pushed, so you do not silently discard a local edit.

## Flags

| Flag | Description |
| - | - |
| `-y, --yes` | Skip confirmation. Required when no interactive terminal is available. |
| `--json` | Emit machine-readable success or refusal output. |
| `--non-tty` | Never prompt. Pair with `--yes`. |

## See also

* [`capy add`](/docs/cli/add)
* [`capy list`](/docs/cli/list)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.