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

# Delete partner user

> Removes a user from the partner: its link as partner administrator, with the administrator links to the partner's template organizations and the partner role (manager or support) that come with it, and its administrator and accounting consultant links to the partner's organizations. The partner role stays on the user's account while the user administers another partner. An organization's administrator link stays when the user is employed by that organization, as do the employments: they make the user one of the organization's own users, not a partner user. Report administrator and report viewer roles in the partner's organizations also stay, and a person holding one is not deleted.

When nothing else refers to the person behind the user any more, the person is deleted: it can no longer sign in, and it is removed permanently later. Its email address and `externalSourceId` can be used for a new user right away. A person who is still employed somewhere, or linked to another partner or its organizations, is only removed from this partner. When another person with the same email address signs in with the same login, as in client applications that keep employees and partner users apart, the login stays for that person.

Only a caller with a role above partner support may delete a partner manager. A partner support caller gets 403.

Returns 403 both when the partner does not exist, is deleted, or the caller may not administer it (also for a token scoped to a single organization), and when the user is not one of the partner's users (unknown, deleted already, or not linked to this partner). The two cases answer the same.




## OpenAPI

````yaml /openapi/findity-admin-api.json delete /partners/{partnerId}/users/{userId}
openapi: 3.1.0
info:
  title: Findity Admin API
  description: Findity Admin API
  version: 1.0.0
servers:
  - url: https://stage-api.findity.com/api/v1/admin
  - url: https://api.findity.com/api/v1/admin
security:
  - bearerAuth: []
paths:
  /partners/{partnerId}/users/{userId}:
    delete:
      tags:
        - Partners
      summary: Delete partner user
      description: >
        Removes a user from the partner: its link as partner administrator, with
        the administrator links to the partner's template organizations and the
        partner role (manager or support) that come with it, and its
        administrator and accounting consultant links to the partner's
        organizations. The partner role stays on the user's account while the
        user administers another partner. An organization's administrator link
        stays when the user is employed by that organization, as do the
        employments: they make the user one of the organization's own users, not
        a partner user. Report administrator and report viewer roles in the
        partner's organizations also stay, and a person holding one is not
        deleted.


        When nothing else refers to the person behind the user any more, the
        person is deleted: it can no longer sign in, and it is removed
        permanently later. Its email address and `externalSourceId` can be used
        for a new user right away. A person who is still employed somewhere, or
        linked to another partner or its organizations, is only removed from
        this partner. When another person with the same email address signs in
        with the same login, as in client applications that keep employees and
        partner users apart, the login stays for that person.


        Only a caller with a role above partner support may delete a partner
        manager. A partner support caller gets 403.


        Returns 403 both when the partner does not exist, is deleted, or the
        caller may not administer it (also for a token scoped to a single
        organization), and when the user is not one of the partner's users
        (unknown, deleted already, or not linked to this partner). The two cases
        answer the same.
      operationId: adminDeletePartnerUser
      parameters:
        - name: partnerId
          in: path
          required: true
          description: >
            String, required. The ID of the partner (32-character hex string),
            as returned in the `id` field of the partner endpoints. Lookup by
            `externalSourceId` is not supported for partners.
          schema:
            $ref: '#/components/schemas/Uuid'
          example: 6aeb86c4fb154c46b2b5a1977245ac67
        - name: userId
          in: path
          required: true
          description: >
            String, required. The user's internal ID (32-character hex string)
            or its `externalSourceId` (supports externalId). When a user's
            internal ID and another user's `externalSourceId` are the same
            value, the internal ID takes precedence.
          schema:
            type: string
            example: 8a66aa549e6a3672019e73b79f8e1a7f
      responses:
        '204':
          description: No Content — the user was removed from the partner
        '403':
          description: >
            Forbidden — the partner or the user is not found or not accessible,
            or a partner support caller tries to delete a partner manager
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/403Error'
              examples:
                Partner or user not found or access denied:
                  value:
                    result: error
                    description: User not found or access denied
                Partner manager not allowed:
                  description: >
                    A partner support caller deleting a partner manager. DELETE
                    answers with the same message as POST and PUT, since the
                    check is shared: a caller who can't grant the partner
                    manager role can't remove a partner manager either.
                  value:
                    result: error
                    description: Not allowed to grant the partner manager role
components:
  schemas:
    Uuid:
      type: string
      pattern: ^[0-9a-fA-F]{32}$
      description: UUID without dashes (32-character hex string)
    403Error:
      type: object
      properties:
        result:
          type: string
        code:
          type: string
        description:
          type: string
      example:
        result: error
        description: Not allowed
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````