---
ai:
  exclude: true
search:
  tags:
    - role
    - DELETE
seo:
  description: >-
    Deletes a role. May return 403 in the future. Reference for the DELETE
    /api/2/role/{id} endpoint in the Jira Software Data Center REST API
    Reference.
sidebar:
  label: Deletes a role
  badge: DELETE
title: Deletes a role
type: openapi-operation
---
Deletes a role. May return 403 in the future

`DELETE /api/2/role/{id}`

**Responses**

- `204` — Returned if the delete was successful.
- `400` — Returned if given role with given swap id does not exist.
- `401` — Returned if the requesting user is not logged in.
- `403` — Returned if the requesting user is not an admin or a sysadmin.
- `404` — Returned if the role with the given id does not exist.
- `409` — Returned if the project role is used in schemes and roleToSwap query parameter is not given.
