---
search:
  tags:
    - Access
    - DELETE
seo:
  description: >-
    SSO users who are still allowed to sign in are created again on their next
    sign-in.… Reference for the DELETE /users/{id} endpoint in the piecemeal
    API.
sidebar:
  label: Remove a user with their sessions and API keys
  badge: DELETE
title: Remove a user with their sessions and API keys
type: openapi-operation
---
SSO users who are still allowed to sign in are created again on their next sign-in. Remove them from the allowed groups at the provider first. The local admin can't be removed.

`DELETE /users/{id}`

**Responses**

- `204` — No Content
- `401` — Unauthorized
- `403` — Forbidden
- `422` — Unprocessable Entity
- `500` — Internal Server Error
