---
title: "Delete Scope"
method: DELETE
path: "/rbac/scopes/{scope_id}"
tags: ["rbac"]
---

# Delete Scope

`DELETE /rbac/scopes/{scope_id}`

## Request

- Base URL: `https://platform.tracecat.com/api`
- URL: `https://platform.tracecat.com/api/rbac/scopes/{scope_id}`
- Auth: one of:
  - API key in cookie `fastapiusersauth`
  - HTTP bearer

Delete a custom scope.

Only custom scopes can be deleted. System and registry scopes are protected.

Requires: org:rbac:delete scope

## Path parameters

- `scope_id` string, uuid, required

## Response `204`

Successful Response

## Other responses

- `403`: Platform scope or scope from another organization.
- `404`: Scope not found.
- `422`: Validation Error

---

[API](https://skmtc.dev/tracecat/apis/tracecat-api.md) - [All operations](https://skmtc.dev/tracecat/apis/tracecat-api/llms.txt) - [OpenAPI document](https://skmtc.dev/tracecat/apis/tracecat-api/revisions/2efdda25045f?raw)
