---
title: "Unlink Governed Agent Route"
method: DELETE
path: "/api/v1/discovery/github/agents/{agent_id}/agent"
tags: ["discovery"]
---

# Unlink Governed Agent Route

`DELETE /api/v1/discovery/github/agents/{agent_id}/agent`

## Request

- Base URL: `https://cp.xenovia.io` (the document declares no server; this is the origin it was published from)
- URL: `https://cp.xenovia.io/api/v1/discovery/github/agents/{agent_id}/agent`
- Auth: none declared

Undo the link: the discovered agent's code no longer belongs to any
agent, and the agent it belonged to reads its code again. Human-only,
like the other decisions that change what discovery has recorded.
Unlinking what is not linked is a no-op.

## Path parameters

- `agent_id` string, uuid, required

## Headers

- `Authorization` string, nullable
- `X-Request-ID` string, nullable

## Response `200`

Successful Response

- DiscoveryAgentRead
  - `id` string, uuid, required
  - `repository_id` string, uuid, required
  - `repository_full_name` string, required
  - `stable_id` string, required
  - `kind` string, required
  - `name` string, required
  - `framework` string, nullable, required
  - `provider` string, nullable, required
  - `model` string, nullable, required
  - `entry_file` string, required
  - `entry_line` integer, nullable, required
  - `gateway_posture` string, required
  - `owner` string, nullable, required
  - `evidence` string[], required
  - `governed_agent_id` string, uuid, nullable, required
  - `first_seen_at` string, date-time, required
  - `last_seen_at` string, date-time, required
  - `removed_at` string, date-time, nullable, required
  - `open_findings` integer, required

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-26** `3e25bef24f8f`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/xenovia/apis/controlplane/changes/api/v1/discovery/github/agents/:agent_id/agent/delete.md)

---

[API](https://skmtc.dev/xenovia/apis/controlplane.md) - [All operations](https://skmtc.dev/xenovia/apis/controlplane/llms.txt) - [OpenAPI document](https://skmtc.dev/xenovia/apis/controlplane/revisions/3e25bef24f8f?raw)
