---
title: "DELETE /user_roles/{userId}"
method: DELETE
path: "/user_roles/{userId}"
tags: ["User Management"]
---

# DELETE /user_roles/{userId}

`DELETE /user_roles/{userId}`

## Request

- Base URL: `https://sort.veritas.com/infoscale/api/2.0`
- URL: `https://sort.veritas.com/infoscale/api/2.0/user_roles/{userId}`
- Auth: none declared
- TypeScript: <https://skmtc.dev/veritas/apis/veritas-infoscale-api/docs/user_roles/:userId/delete.ts> (a function with typed inputs; its response is checked against the schema)

Delete the REST user.

## Path parameters

- `userId` string, required

## Headers

- `token` string

## Response `201`

Successfully deleted the user from REST.

- UserDetailResponse
  - `username` string: The name of the user.
  - `role` string: The role of the user.

## Other responses

- `400`: The user name is incorrect.
- `401`: Unauthorized

---

[API](https://skmtc.dev/veritas/apis/veritas-infoscale-api.md) - [All operations](https://skmtc.dev/veritas/apis/veritas-infoscale-api/llms.txt) - [OpenAPI document](https://skmtc.dev/veritas/apis/veritas-infoscale-api/revisions/1e3d3f7145bb?raw)
