---
title: "Remove the .gh file of a capsule"
method: DELETE
path: "/v3/backoffice/capsule/{id}/gh"
tags: ["Knowledge Capsule"]
---

# Remove the .gh file of a capsule

`DELETE /v3/backoffice/capsule/{id}/gh`

## Request

- Base URL: `https://api.rhinoartisan.com`
- URL: `https://api.rhinoartisan.com/v3/backoffice/capsule/{id}/gh`
- Auth: API key in header `apikey`
- TypeScript: <https://skmtc.dev/rhinoartisan/apis/rhinoartisan-api/docs/v3/backoffice/capsule/:id/gh/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes the Grasshopper definition and clears its metadata. The capsule itself is kept.

## Path parameters

- `id` integer, required

## Response `200`

File removed successfully

## Other responses

- `401`: Unauthorized
- `403`: Access denied
- `404`: CAPSULE_NOT_FOUND

## Changes

- **2026-10-15** `598bac108453`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/rhinoartisan/apis/rhinoartisan-api/changes/v3/backoffice/capsule/:id/gh/delete.md)

---

[API](https://skmtc.dev/rhinoartisan/apis/rhinoartisan-api.md) - [All operations](https://skmtc.dev/rhinoartisan/apis/rhinoartisan-api/llms.txt) - [OpenAPI document](https://skmtc.dev/rhinoartisan/apis/rhinoartisan-api/revisions/f0e1d3d69cfb?raw)
