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

# Delete demo account

> Deletes a demo trading account and its associated purchase. Only works for legacy demo accounts (`DEMO-*` account number with `is_demo: true` in metadata) that belong to the authenticated user. Funded and evaluation accounts return 403 `NOT_DEMO_ACCOUNT`.



## OpenAPI

````yaml /api-reference/openapi.json delete /v1/user/demo/accounts/{accountId}
openapi: 3.0.0
info:
  title: Hyperprop Platform API
  version: 1.0.0
  description: >-
    REST API for the Hyperprop Trading Platform — provision evaluation and
    funded trading accounts, manage traders and plans, react to account
    lifecycle events via signed webhooks, and reconcile billing. Built for prop
    firms integrating from their own backend.


    Authentication, quick start, error handling, idempotency, pagination, custom
    metadata, webhooks, and the MCP connector are documented at
    https://docs.hyperprop.com.
  x-logo:
    url: https://app.hyperprop.com/logo-icon.svg
    altText: Hyperprop
    href: https://hyperprop.com
servers:
  - url: https://api.hyperprop.com/platform
    description: Production
security: []
tags:
  - name: Authentication
    description: >-
      User authentication - signup, signin, signout, password reset, email
      verification, OAuth, and MFA
  - name: User
    description: >-
      User account management - profile, notifications, agreements, dismissals,
      and audit logs. Requires Bearer token.
  - name: Organization
    description: >-
      Organization management - profile, team, trading accounts, plans, and
      rules. Supports **dual authentication**: Bearer JWT token (dashboard
      users) OR X-API-Key (programmatic access).
  - name: Market Data
    description: CME futures contracts and market data. Requires Bearer token.
  - name: Indicator Builder
    description: >-
      AI-assisted authoring of custom Hyperprop Script indicators for the web
      terminal. Requires Bearer token.
  - name: System
    description: System endpoints - health checks and connectivity
paths:
  /v1/user/demo/accounts/{accountId}:
    delete:
      tags:
        - User
      summary: Delete demo account
      description: >-
        Deletes a demo trading account and its associated purchase. Only works
        for legacy demo accounts (`DEMO-*` account number with `is_demo: true`
        in metadata) that belong to the authenticated user. Funded and
        evaluation accounts return 403 `NOT_DEMO_ACCOUNT`.
      operationId: deleteV1UserDemoAccountsAccountid
      parameters:
        - description: The demo account ID to delete
          x-format:
            guid: true
          name: accountId
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Demo account deleted
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/Model777'
        '401':
          description: Authentication required
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/Model9'
        '403':
          description: Not your account or not a demo account
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/Model778'
        '404':
          description: Account not found
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/Model779'
        '500':
          description: An unexpected error occurred
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/Model5'
components:
  schemas:
    Model777:
      type: object
      properties:
        success:
          type: boolean
          example: true
        message:
          type: string
          example: Demo account deleted successfully
        data:
          $ref: '#/components/schemas/Model776'
    Model9:
      type: object
      properties:
        success:
          type: boolean
          description: Always false on errors
          example: false
        statusCode:
          type: number
          example: 401
        error:
          type: string
          example: Unauthorized
        message:
          type: string
          example: Authentication required
        code:
          type: string
          description: Machine-readable error code — switch on this, not on message text
          example: UNAUTHORIZED
    Model778:
      type: object
      properties:
        statusCode:
          type: number
          example: 403
        error:
          type: string
          example: Forbidden
        message:
          type: string
          example: Only demo accounts can be deleted by users
        code:
          type: string
          example: NOT_DEMO_ACCOUNT
    Model779:
      type: object
      properties:
        statusCode:
          type: number
          example: 404
        error:
          type: string
          example: Not Found
        message:
          type: string
          example: Account not found
        code:
          type: string
          example: ACCOUNT_NOT_FOUND
    Model5:
      type: object
      properties:
        success:
          type: boolean
          description: Always false on errors
          example: false
        statusCode:
          type: number
          example: 500
        error:
          type: string
          example: Internal Server Error
        message:
          type: string
          example: An unexpected error occurred
        code:
          type: string
          description: Machine-readable error code — switch on this, not on message text
          example: INTERNAL_ERROR
    Model776:
      type: object
      properties:
        deleted:
          type: boolean
          example: true
        accountId:
          type: string
          x-format:
            guid: true

````

## Related topics

- [Delete demo account (with purchase and audit trail)](/platform-api/user/delete-demo-account-with-purchase-and-audit-trail.md)
- [Changelog](/changelog.md)
- [Delete a trading rule](/platform-api/organization/delete-a-trading-rule.md)
- [Delete a webhook](/platform-api/organization/delete-a-webhook.md)
- [Delete a trading plan](/platform-api/organization/delete-a-trading-plan.md)
