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

# xanosdk lock prune

> Drop orphaned entries (all, or just the named keys)

## Usage

```bash theme={null}
xanosdk lock prune <entry-file> [keys…] [options]
```

## Flags

| Flag | Description |
| - | - |
| `--yes, -y` | Confirm a destructive action non-interactively |
| `--lock[=<path>]` | Name the xano.lock to use — default: beside the entry file |
| `--entry <path>` | The entry file as a flag, in place of \<entry-file> — every positional is then a key |
| `--identity-only` | Prune the named keys without loading the entry file |

Global flags are listed in the [CLI overview](/reference/cli).

***

*Generated from @xano/sdk 1.0.9.*


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