---
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`

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/api-v2.md) · [All operations](https://skmtc.dev/datadog/apis/api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/datadog/api-v2/revisions/da68bf029e4c/schema)
