---
title: "Remove an AI Gateway's attribution plugin"
method: DELETE
path: "/v1/ai-cost-management/ai-gateways/{gatewayId}/attribution-plugin"
tags: ["attribution-plugins"]
---

# Remove an AI Gateway's attribution plugin

`DELETE /v1/ai-cost-management/ai-gateways/{gatewayId}/attribution-plugin`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v1/ai-cost-management/ai-gateways/{gatewayId}/attribution-plugin`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Removes the attribution plugin from an AI Gateway: the global policy that turns it on, the custom policy that holds it, and the installation. The gateway's requests stop getting the plugin's tags. The request writes through the AI Gateway API as the caller, so the caller also needs the AI Gateways Admin role on the gateway, and a policy that is already gone counts as removed.

If the gateway has no installation, or the identifier isn't a valid ID, the request fails with `404`. This includes removing the plugin again. If another change to the gateway's plugin is running, the request fails with `409` and changes nothing. Repeat it once that change has finished.

## Path parameters

- `gatewayId` string, uuid, required

## Response `204`

The plugin was removed.

## Other responses

- `401`: The request has no valid access token. The token is missing, malformed, or expired, or it fails another check, and the response doesn't say which.
- `403`: The access token is valid, but its principal lacks the permission this operation requires. For an operation on one resource, the response doesn't reveal whether that resource exists.
- `404`: The AI Gateway has no attribution plugin installation.
- `409`: Another change to the gateway's plugin is running.

## Changes

- **2026-11-19** `3b071797f6e4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/kong/apis/konnect-api-go-sdk/changes/v1/ai-cost-management/ai-gateways/:gatewayId/attribution-plugin/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)
