---
title: "DELETE /api/{org_id}/settings/gen_ai/agent_registry"
method: DELETE
path: "/api/{org_id}/settings/gen_ai/agent_registry"
tags: ["GenAI Settings"]
---

# DELETE /api/{org_id}/settings/gen_ai/agent_registry

`DELETE /api/{org_id}/settings/gen_ai/agent_registry`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/settings/gen_ai/agent_registry`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/settings/gen_ai/agent_registry/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `org_id` string, required

## Query parameters

- `source_stream` string, nullable
- `source_stream_type` string, nullable

## Response `200`

Cleared Gen-AI agent registry rows

- ClearAgentRegistryResponse: Result returned after clearing registry rows and pending buffer entries.
  - `cleared_buffer_count` integer, required: Number of in-memory buffered observations removed.
  - `deleted_count` integer, required: Number of persisted registry rows deleted.
  - `source_stream` string, nullable: Stream name scope that was cleared, when provided.
  - `source_stream_type` string, nullable: Stream type scope that was cleared, when provided.

## Other responses

- `400`: Invalid query
- `401`: Unauthorized
- `500`: Internal server error

---

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