---
title: "Reset worktree"
method: POST
path: "/experimental/worktree/reset"
---

# Reset worktree

`POST /experimental/worktree/reset`

Reset a worktree branch to the primary default branch.

## Query parameters

- `directory` string

## Request body

- WorktreeResetInput
  - `directory` string, required

## Response `200`

Worktree reset

- boolean

## Other responses

- `400` — Bad request

## Changes

- **2026-01-19** `aaeb235535ae` — 1 info
  - endpoint added
- **2026-01-14** `099a52ba8e1c` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/martian-engineering/apis/voltcode/changes/experimental/worktree/reset/post.md)

---

[API](https://skmtc.dev/martian-engineering/apis/voltcode.md) · [All operations](https://skmtc.dev/martian-engineering/apis/voltcode/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/martian-engineering/voltcode/revisions/d28625e4a7ea/schema)
