---
title: "Delete role"
method: DELETE
path: "/preview/v2/roles/{id}"
tags: ["Roles"]
---

# Delete role

`DELETE /preview/v2/roles/{id}`

> ⚠️ This endpoint is in [public preview](/preview/roadmap).

Delete a role by ID, resource path, or name.

## Path parameters

- `id` string, required — A resource path like 'sfc:role:acme:my-role' _or_ an ID. Resource paths are human-readable but not stable - they change when resources are renamed or moved. IDs are stable and permanent.

## Response `204`

Role deleted.

## Other responses

- `401` — Unauthorized.
- `403` — Forbidden.
- `404` — Role not found.
- `500` — Internal server error.

---

[API](https://skmtc.net/sfcompute/apis/san-francisco-compute-documentation.md) · [All operations](https://skmtc.net/sfcompute/apis/san-francisco-compute-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sfcompute/san-francisco-compute-documentation/revisions/93dd7661e9bb/schema)
