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

# Delete an entity and its associated data



## OpenAPI

````yaml /api-reference/platform-api.json delete /v2/parties/{id}
openapi: 3.0.0
info:
  title: Range Platform API
  description: >-
    The Range Platform API for workspace management, counterparties, and
    operational tooling.
  version: 1.7.29
  contact: {}
servers:
  - url: https://api.range.org
    description: Range API Server
security:
  - Authorization: []
  - Authorization: []
tags:
  - name: Address Information
    description: Get information about a crypto address.
  - name: Transfer Enrichments
    description: Attach workspace-scoped notes and categories to transfers.
  - name: Counterparties
    description: Manage external entities, their addresses, bank accounts, and documents.
  - name: Parties
    description: >-
      The workspace entity register: the firm itself, its clients, and its
      counterparties.
paths:
  /v2/parties/{id}:
    delete:
      tags:
        - Parties
      summary: Delete an entity and its associated data
      operationId: delete
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteEntityResponseDto'
        '404':
          description: Entity not found
        '409':
          description: The self entity cannot be deleted
components:
  schemas:
    DeleteEntityResponseDto:
      type: object
      properties:
        acknowledged:
          type: boolean
          example: true
        accounts_reassigned:
          type: number
          example: 2
          description: >-
            Accounts that belonged to the deleted entity and were moved back to
            the self entity, in the same transaction.
      required:
        - acknowledged
        - accounts_reassigned
  securitySchemes:
    Authorization:
      type: apiKey
      in: header
      name: X-API-KEY
      description: Authorization method required to allow user to access the api endpoints.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.