---
title: "Delete an export"
method: DELETE
path: "/v1/ai-cost-management/exports/{exportId}"
tags: ["exports"]
---

# Delete an export

`DELETE /v1/ai-cost-management/exports/{exportId}`

## Request

- Base URL: `https://global.api.konghq.com`
- URL: `https://global.api.konghq.com/v1/ai-cost-management/exports/{exportId}`
- Auth: one of:
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer
  - HTTP bearer

Deletes an export and its files before it responds, so the files can't be downloaded afterwards. Deleting a `pending` or `running` export cancels it.

If the files can't be removed, the request fails with `500` and the export remains, so a retry deletes both. If the organization has no export with this identifier, or the identifier isn't a valid UUID, the request fails with `404`. This includes deleting the same export again.

## Path parameters

- `exportId` string, uuid, required

## Response `204`

The export and its files were deleted.

## 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 organization has no export with this identifier.

## 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/exports/:exportId/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)
