---
title: "Revoke a keyword dataset | Brand evidence | AEO API"
description: "Revokes a keyword dataset."
url: "https://aeoapi.dev/docs/features/brand-evidence/delete-brands-brand-id-evidence-kind-key-keyword-dataset"
canonical: "https://aeoapi.dev/docs/features/brand-evidence/delete-brands-brand-id-evidence-kind-key-keyword-dataset"
last_updated: "2026-11-30"
---

Brand evidence

# Revoke a keyword dataset

Revokes a keyword dataset.

[`DELETE /v2/brands/{brand_id}/evidence/{kind}/{key}`](https://aeoapi.dev/docs/api-reference#delete-v2-brands-brand_id-evidence-kind-key)

- Path `kind` is `keyword_dataset`.

## Authentication and access

**Authentication**

Bearer API key

**Scopes**

optimizations:write

**Roles**

editor, owner, service

**Plans**

Optimizer

**Credits**

No credit charge.

## Parameters

Request parameters

| Name | Where | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `brand_id` | path | `string (uuid)` | Yes |  |
| `key` | path | `string (uuid)` | Yes | The dataset UUID. |
| `kind` | path | `"keyword_dataset"` | Yes |  |
| `source_revision` | query | `integer` | Yes |  |

## Request body

Send this request without a body.

## Request examples

Set `AEO_API_BASE_URL` to `https://api.aeoapi.dev` and `AEO_API_KEY` to your server-side API key. Set the other environment variables to the values for your request.

```bash
curl --fail-with-body -X DELETE "$AEO_API_BASE_URL/v2/brands/$BRAND_ID/evidence/keyword_dataset/$KEY?source_revision=$SOURCE_REVISION" \
  -H "Authorization: Bearer $AEO_API_KEY"
```

```python
from os import environ
from aeo_sdk import AeoClient

with AeoClient(environ["AEO_API_KEY"], base_url=environ["AEO_API_BASE_URL"]) as client:
    response = client.v2_delete_brands_brand_id_evidence_kind_key(
        brand_id=environ["BRAND_ID"],
        key=environ["KEY"],
        kind="keyword_dataset",
        source_revision=int(environ["SOURCE_REVISION"]),
    )
    print(response.body)
```

```typescript
import { AeoClient } from "@aeoapi/aeo-sdk";

const client = new AeoClient(process.env.AEO_API_KEY!, {
  baseUrl: process.env.AEO_API_BASE_URL!,
});
const response = await client.v2DeleteBrandsBrandIdEvidenceKindKey(
  process.env.BRAND_ID!,
  process.env.KEY!,
  "keyword_dataset",
  {
    source_revision: Number(process.env.SOURCE_REVISION!),
  },
);
console.log(response.body);
```

## Responses

#### HTTP 200

Successful Response

`application/json`

Response fields are listed below.

HTTP 200 response fields 1

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `data` | `object` | Yes | The requested result. See the fields below for its contents. |
| `data.dataset_id` | `string (uuid)` | Yes |  |
| `data.rights_expires_at` | `string (date-time)` | Yes |  |
| `data.source_revision` | `integer` | Yes |  |
| `data.state` | `"active" \| "revoked"` | Yes |  |
| `data.stored_keywords` | `integer` | Yes |  |
| `meta` | `object` | Yes | Information about this response, including any warnings or pagination details. |

## Errors

Read `code` and `message` in the error response. Keep `request_id` when you contact support.

- HTTP 400 [`invalid_request`](https://aeoapi.dev/docs/errors#invalid_request)
- HTTP 401 [`unauthenticated`](https://aeoapi.dev/docs/errors#unauthenticated)
- HTTP 403 [`forbidden`](https://aeoapi.dev/docs/errors#forbidden)
- HTTP 404 [`not_found`](https://aeoapi.dev/docs/errors#not_found)
- HTTP 422 [`validation_error`](https://aeoapi.dev/docs/errors#validation_error)
- HTTP 429 [`rate_limited`](https://aeoapi.dev/docs/errors#rate_limited)

[Brand evidence reference](https://aeoapi.dev/docs/features/brand-evidence)
