> ## 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 cleanup: Remove Capy Git Hooks

> Remove Capy's post-checkout and post-merge git hooks from a repository. Leaves .env and keep.lock intact — for uninstalling or clearing hook conflicts.

## Synopsis

```bash theme={null}
capy cleanup
```

## Description

Removes the `post-checkout` and `post-merge` hooks that `capy` installs on project init. Also clears any leftover Capy block from `pre-push` (older Capy versions installed one; current versions don't). Leaves `keep.lock` and `.env` untouched.

Use this if you want to stop using Capy in a given repo, or if a hook is interfering with another tool you use.

## Example

```bash theme={null}
$ capy cleanup
Removed Capy hook from post-checkout
Removed Capy hook from post-merge
Capy git hooks removed.
```

If no Capy hooks are present:

```bash theme={null}
$ capy cleanup
No Capy hooks found.
```
