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

# Remove app user

> <Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>

Removes a user from the app.

The user loses access straight away, including any editor access they had to the app. Their invitation or access request is deleted too, so they aren't added back the next time they sign in, unless they belong to a group shared with the app, which lets them back in through the group. To give them access again, invite them with [Invite app users](/api-reference/invite-app-users). You can't remove the app's owner.

Removing a user triggers the app's webhooks for the `User` entity.

<Note>This endpoint accepts a personal API key belonging to a user with editor access to the app. A read-only key is refused, and workspace API keys are not accepted.</Note>



## OpenAPI

````yaml /developers/references/app-management/app-management-openapi.json delete /api/apps/{app_id}/entities/User/{user_id}
openapi: 3.1.0
info:
  title: Base44 App Management API
  version: 1.0.0
servers:
  - url: https://app.base44.com
security:
  - PersonalAccessTokenAuth: []
paths:
  /api/apps/{app_id}/entities/User/{user_id}:
    delete:
      summary: Remove app user
      description: >-
        <Info>This API is in beta. Endpoints, fields, and behavior may still
        change, so avoid depending on it in production.</Info>


        Removes a user from the app.


        The user loses access straight away, including any editor access they
        had to the app. Their invitation or access request is deleted too, so
        they aren't added back the next time they sign in, unless they belong to
        a group shared with the app, which lets them back in through the group.
        To give them access again, invite them with [Invite app
        users](/api-reference/invite-app-users). You can't remove the app's
        owner.


        Removing a user triggers the app's webhooks for the `User` entity.


        <Note>This endpoint accepts a personal API key belonging to a user with
        editor access to the app. A read-only key is refused, and workspace API
        keys are not accepted.</Note>
      operationId: delete_entity_api_apps__app_id__entities_User__user_id__delete
      parameters:
        - name: user_id
          in: path
          required: true
          schema:
            type: string
            description: >-
              ID of the user, as `id` in the response of [List app
              users](/api-reference/list-app-users).
            title: User Id
          description: >-
            ID of the user, as `id` in the response of [List app
            users](/api-reference/list-app-users).
          example: 6874b0c2e1a94d0031bb77de
        - name: app_id
          in: path
          required: true
          schema:
            type: string
            description: ID of the app the user belongs to.
            title: App Id
          description: ID of the app the user belongs to.
          example: 6820f3a4e7b91d003c45a1f2
      responses:
        '200':
          description: The user was removed.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
                title: DeleteEntityRecordResponse
                description: Confirmation that a record was deleted.
                properties:
                  success:
                    type: boolean
                    title: Success
                    description: >-
                      Always `true`. A delete that doesn't happen returns an
                      error instead.
                    example: true
                required:
                  - success
        '401':
          description: Missing or invalid credentials.
        '403':
          description: >-
            You don't have editor access to this app, the user is the app's
            owner, or your API key is read-only.
        '404':
          description: App not found, or the app has no user with this ID.
        '429':
          description: >-
            Rate limit exceeded. The base limit is 70 requests every 30 seconds.
            See [Rate
            limits](/developers/references/apps-api/get-started/rate-limits) for
            the multiplier your plan gets.
components:
  securitySchemes:
    PersonalAccessTokenAuth:
      type: http
      scheme: bearer
      description: 'Personal access token, sent as `Authorization: Bearer <token>`.'

````