---
title: "Cleanup merged worktrees"
method: POST
path: "/v1/git/worktrees/cleanup"
tags: ["git"]
---

# Cleanup merged worktrees

`POST /v1/git/worktrees/cleanup`

Removes worktrees that have been fully merged into their source branch

## Response `200`

OK

- object

---

[API](https://skmtc.net/wandb/apis/catnip-container-api.md) · [All operations](https://skmtc.net/wandb/apis/catnip-container-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/wandb/catnip-container-api/versions/a075b0fa501a/schema)
