> ## Documentation index
> Fetch the complete documentation index at: https://workover.io/docs/llms.txt

# Delete a custom role

DELETE`/workspace/{orgId}/product-roles/{roleKey}`

Members and invitations holding it lose that role only; their other roles stay. Answers how many held it. Needs Manage teammates.

## Path Parameters

`orgId`

numberrequired

`roleKey`

stringrequired

## Response

200

**cURL**

```bash
curl --request DELETE \
  --url 'https://api.workover.io/workspace/{orgId}/product-roles/{roleKey}'
```

**JavaScript**

```javascript
const options = {
  method: 'DELETE'
};

fetch('https://api.workover.io/workspace/{orgId}/product-roles/{roleKey}', options)
  .then(res => res.json())
  .then(res => console.log(res))
  .catch(err => console.error(err));
```

**Python**

```python
import requests

url = "https://api.workover.io/workspace/{orgId}/product-roles/{roleKey}"

response = requests.delete(url)

print(response.text)
```
