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

# Scim Delete User

> Hard-deprovision a user (some IdPs delete rather than active=false).

Runs the full deprovisioning sequence: membership deactivated,
sessions/refresh/PATs stub-revoked, removed from all groups.
404 noTarget for unknown id.
Last admin guard enforced.



## OpenAPI

````yaml /openapi.json delete /v1/scim/v2/{tenant}/Users/{member_id}
openapi: 3.1.0
info:
  description: Causeloop Platform Backend
  title: Causeloop API
  version: 1.0.0
servers: []
security: []
paths:
  /v1/scim/v2/{tenant}/Users/{member_id}:
    delete:
      tags:
        - scim
      summary: Scim Delete User
      description: |-
        Hard-deprovision a user (some IdPs delete rather than active=false).

        Runs the full deprovisioning sequence: membership deactivated,
        sessions/refresh/PATs stub-revoked, removed from all groups.
        404 noTarget for unknown id.
        Last admin guard enforced.
      operationId: scim_delete_user_v1_scim_v2__tenant__Users__member_id__delete
      parameters:
        - in: path
          name: tenant
          required: true
          schema:
            title: Tenant
            type: string
        - in: path
          name: member_id
          required: true
          schema:
            title: Member Id
            type: string
      responses:
        '204':
          description: Successful Response
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
components:
  schemas:
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
        - loc
        - msg
        - type
      title: ValidationError
      type: object

````