> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cube.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete user

> De-provisions (deletes) a user by their SCIM `id`.



## OpenAPI

````yaml /api-reference/scim.yaml delete /scim/v2/Users/{id}
openapi: 3.1.0
info:
  title: Cube Cloud SCIM API
  version: 1.0.0
  description: >
    The SCIM 2.0 API lets identity providers (Okta, Azure AD/Entra ID, OneLogin,

    and others) provision and de-provision users and groups in Cube Cloud

    automatically. It implements the System for Cross-domain Identity Management

    protocol as defined in [RFC
    7643](https://datatracker.ietf.org/doc/html/rfc7643)

    and [RFC 7644](https://datatracker.ietf.org/doc/html/rfc7644).


    ## Base URL


    All SCIM endpoints live under the `/scim/v2` namespace on your Cube Cloud

    tenant's API host:


    ```text

    https://<tenant>.cubecloud.dev/api/scim/v2

    ```


    Replace `<tenant>` with your Cube Cloud subdomain, or swap the whole host

    if your account uses a custom domain.


    ## Authentication


    SCIM requests are authenticated with a bearer token issued from your Cube

    Cloud account settings. Include it in the `Authorization` header:


    ```text

    Authorization: Bearer <YOUR_SCIM_TOKEN>

    ```


    ## Content type


    Requests and responses use `application/json`. The SCIM media type

    `application/scim+json` is also accepted.
servers:
  - url: https://{tenant}.cubecloud.dev/api
    description: >-
      Cube Cloud API base URL. Replace the whole host if you use a custom
      domain.
    variables:
      tenant:
        default: your-tenant
        description: Your Cube Cloud tenant subdomain
security:
  - bearerAuth: []
tags:
  - name: SCIM Users
    description: Provision, read, update, and de-provision users.
  - name: SCIM Groups
    description: Provision, read, update, and de-provision groups and their memberships.
paths:
  /scim/v2/Users/{id}:
    delete:
      tags:
        - SCIM Users
      summary: Delete user
      description: De-provisions (deletes) a user by their SCIM `id`.
      operationId: deleteUser
      parameters:
        - $ref: '#/components/parameters/ResourceId'
      responses:
        '204':
          description: The user was deleted.
        '404':
          $ref: '#/components/responses/NotFound'
components:
  parameters:
    ResourceId:
      name: id
      in: path
      required: true
      description: The unique SCIM identifier of the resource.
      schema:
        type: string
  responses:
    NotFound:
      description: The requested resource was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            schemas:
              - urn:ietf:params:scim:api:messages:2.0:Error
            status: '404'
            detail: Resource not found.
  schemas:
    Error:
      type: object
      properties:
        schemas:
          type: array
          items:
            type: string
          example:
            - urn:ietf:params:scim:api:messages:2.0:Error
        status:
          type: string
        detail:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: SCIM bearer token issued from your Cube Cloud account settings.

````