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

# Delete your account

> Deletes the account's personal information, signs out active sessions, removes
organization memberships, and revokes pending invitations sent by the user.
Audit history is retained.

Requires fresh credential proof: the current password (password-backed
accounts) or a TOTP code (MFA-enabled accounts). At least one must be
supplied; both being valid is fine but a single matching proof is enough.

Returns `409 Conflict` if the user is the sole owner of an organization -
ownership must be transferred first.



## OpenAPI

````yaml /api-reference/openapi.personal.json delete /v1/users/me
openapi: 3.1.0
info:
  title: Personal token API
  description: User-scoped API for account and organization management.
  version: 0.1.0
servers:
  - url: https://api.microsandbox.dev
security:
  - bearer: []
paths:
  /v1/users/me:
    delete:
      tags:
        - Account
      summary: Delete your account
      description: >-
        Deletes the account's personal information, signs out active sessions,
        removes

        organization memberships, and revokes pending invitations sent by the
        user.

        Audit history is retained.


        Requires fresh credential proof: the current password (password-backed

        accounts) or a TOTP code (MFA-enabled accounts). At least one must be

        supplied; both being valid is fine but a single matching proof is
        enough.


        Returns `409 Conflict` if the user is the sole owner of an organization
        -

        ownership must be transferred first.
      operationId: delete_me
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/DeleteMeRequest'
        required: true
      responses:
        '200':
          description: Account deleted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MessageResponse'
        '400':
          description: Missing credential proof
        '401':
          description: Invalid password or MFA code
        '409':
          description: Sole owner of an organization
      security:
        - bearer: []
components:
  schemas:
    DeleteMeRequest:
      type: object
      description: |-
        DELETE /v1/users/me - body confirms the destructive action.

        Provide exactly one credential proof: the current password (for
        password-backed accounts) or a TOTP code (when MFA is enabled).
        OAuth-only accounts must enrol in MFA before deletion is permitted.
      properties:
        mfa_code:
          type:
            - string
            - 'null'
          description: TOTP code - required when MFA is enabled.
        password:
          type:
            - string
            - 'null'
          description: Current account password - required for password-backed accounts.
    MessageResponse:
      type: object
      description: Simple message response for operations without a body.
      required:
        - message
      properties:
        message:
          type: string
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: >-
        Personal access token (msb_pat_…) or session JWT - the credential an
        agent acts with on a user's behalf.

````