---
title: "Revoke role from an archive"
method: DELETE
path: "/api/v2/logs/config/archives/{archive_id}/readers"
tags: ["Logs Archives"]
---

# Revoke role from an archive

`DELETE /api/v2/logs/config/archives/{archive_id}/readers`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/logs/config/archives/{archive_id}/readers`
- Auth: API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`

Removes a role from an archive. ([Roles API](https://docs.datadoghq.com/api/v2/roles/))

## Path parameters

- `archive_id` string, required

## Request body

- RelationshipToRole: Relationship to role.
  - `data` RelationshipToRoleData: Relationship to role object.
    - `id` string: The unique identifier of the role.
    - `type` 'roles': Roles type.

## Response `204`

OK

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `404`: Not found
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
