Source: https://dinakar-planhat.docs-staging.pageloop.ai/api-reference/articles/deletearticle

# Delete an article

DELETE `https://api.pageloop.ai/v1/articles/{articleId}`

Permanently removes an article from the knowledge base. Articles that are referenced by open suggestions cannot be deleted until those suggestions are resolved.

## Path Parameters

#### articleId (path, string, required)

The article's unique identifier.

## Response

#### 204

Article deleted. No response body.

#### 400

The article id is malformed (must be a UUID).

#### 401

Missing or invalid bearer token.

#### 404

No article exists with this id.

#### 409

The article is referenced by open suggestions — resolve or reject them first.

#### 429

Rate limit exceeded. Retry after the interval in the Retry-After header.

#### default

Unexpected error.

#### error (string, required)

Machine-readable error code.

#### message (string, required)

Human-readable description of what went wrong.

#### Request

```bash cURL
curl -X DELETE 'https://api.pageloop.ai/v1/articles/{articleId}' \
  -H 'Authorization: Bearer <token>'
```

```javascript JavaScript
const res = await fetch('https://api.pageloop.ai/v1/articles/{articleId}', {
  method: 'DELETE',
  headers: {
    'Authorization': 'Bearer <token>',
  },
});
const data = await res.json();
```

```python Python
import requests

res = requests.delete(
    'https://api.pageloop.ai/v1/articles/{articleId}',
    headers={'Authorization': 'Bearer <token>'}
)
data = res.json()
```

#### Response

```json default
{
  "error": "string",
  "message": "string"
}
```
