---
title: "Delete an AI Gateway Datastore"
method: DELETE
path: "/v1/ai-gateways/{gatewayId}/datastores/{datastoreIdOrName}"
tags: ["AI Gateway Datastores"]
---

# Delete an AI Gateway Datastore

`DELETE /v1/ai-gateways/{gatewayId}/datastores/{datastoreIdOrName}`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v1/ai-gateways/{gatewayId}/datastores/{datastoreIdOrName}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Deletes an AI Gateway Datastore. Rejected with a 409 if the Datastore is still referenced by a policy or model.

## Path parameters

- `gatewayId` string, uuid, required: Contains a unique identifier used for this resource.
- `datastoreIdOrName` string, uuid, required: Contains a unique identifier used for this resource.

## Response `204`

Datastore deleted successfully.

## Other responses

- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `409`: Conflict
- `429`: Too Many Requests

## Changes

- **2026-11-05** `f018071a4515`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/konnect-api/changes/v1/ai-gateways/:gatewayId/datastores/:datastoreIdOrName/delete.md)

---

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