---
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, required: Identifier for an AI Gateway entity. In some cases, this may be the entity name or ID.

## Response `204`

Datastore deleted successfully.

## Other responses

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

## Changes

- **2026-10-30** `89e97cdbf3a4`: 1 info
  - endpoint added

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

---

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