---
title: "Unlink scope from role"
method: DELETE
path: "/api/roles/{id}/scopes/{scopeId}"
tags: ["Roles"]
---

# Unlink scope from role

`DELETE /api/roles/{id}/scopes/{scopeId}`

Unlink an API resource scope (permission) from a role with the given ID.

## Path parameters

- `id` string, required
- `scopeId` string, required

## Response `204`

The API resource scope was unlinked from the role.

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found

---

[API](https://skmtc.net/logto/apis/logto-api-references.md) · [All operations](https://skmtc.net/logto/apis/logto-api-references/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/logto/logto-api-references/versions/a163dc77d842/schema)
