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

# Delete Demo Storefront

> Delete the Demo Storefront and its synthetic resources. When the account is a dedicated Demo account, also archive that account: it leaves the account switcher and the active Accounts list, and stays under the Archived filter of Account settings → Organization → Accounts, where an organization administrator can restore it. Any other account remains active. demoAccount reports what happened to the account.



## OpenAPI

````yaml /v2/storefront-api-v2.yaml delete /demo
openapi: 3.0.0
info:
  title: Scope3 Storefront API
  version: 2.0.0
  description: >-
    REST API for partners to manage Seller Accounts, inventory sources, and
    billing.


    ## Authentication


    All endpoints require a Bearer token in the Authorization header:

    ```

    Authorization: Bearer your-api-key

    ```


    ## Base URL


    `https://api.apostra.com/api/v2/storefront`


    ## For AI Agents


    AI agents can use the MCP endpoint at `/mcp/v2/storefront` with three tools:

    - `initialize`: Start an MCP session

    - `api_call`: Make REST API calls

    - `ask_about_capability`: Learn about API features
servers:
  - url: https://api.apostra.com/api/v2/storefront
    description: Production server
security: []
tags:
  - name: Account
    description: Account management, service tokens, and preferences
  - name: Asks
    description: >-
      What you are waiting on Scope3 for — support, product, and supply asks in
      one list
  - name: Storefront
    description: Manage storefront and inventory sources
  - name: Storefront Agents
    description: List and manage registered sales, signals, and outcomes agents
  - name: Storefront Activity
    description: Audit log of configuration and inventory changes on the storefront
  - name: Storefront Billing
    description: Payout bank details and billing configuration for Seller Accounts
  - name: AI Usage
    description: Seller Account AI token usage visibility by model
  - name: MCP
    description: Model Context Protocol endpoints
paths:
  /demo:
    delete:
      tags:
        - Storefront
      summary: Delete Demo Storefront
      description: >-
        Delete the Demo Storefront and its synthetic resources. When the account
        is a dedicated Demo account, also archive that account: it leaves the
        account switcher and the active Accounts list, and stays under the
        Archived filter of Account settings → Organization → Accounts, where an
        organization administrator can restore it. Any other account remains
        active. demoAccount reports what happened to the account.
      operationId: deleteDemoStorefront
      responses:
        '200':
          description: Delete Demo Storefront
          content:
            application/json:
              schema:
                type: object
                properties:
                  deleted:
                    type: boolean
                  storefrontId:
                    nullable: true
                    type: string
                  demoAccount:
                    type: object
                    properties:
                      outcome:
                        type: string
                        enum:
                          - ARCHIVED
                          - KEPT
                          - ARCHIVE_FAILED
                        description: >-
                          What happened to the account after the delete.
                          ARCHIVED: the account was a dedicated Demo account and
                          is now archived; it leaves the account switcher and
                          the active Accounts list, and stays under the Archived
                          filter of Account settings → Organization → Accounts,
                          where an organization administrator can restore it.
                          KEPT: the account is not a dedicated Demo account, or
                          no Demo Storefront was deleted, so it stays active.
                          ARCHIVE_FAILED: the Demo Storefront was deleted but
                          its Demo account could not be archived; message says
                          why.
                      message:
                        nullable: true
                        description: >-
                          Why the Demo account was not archived, with the next
                          step. Null unless outcome is ARCHIVE_FAILED.
                        type: string
                    required:
                      - outcome
                      - message
                    additionalProperties: false
                required:
                  - deleted
                  - storefrontId
                  - demoAccount
                additionalProperties: false
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        data:
          type: string
          nullable: true
          enum:
            - null
        error:
          $ref: '#/components/schemas/ApiError'
      required:
        - data
        - error
      additionalProperties: false
      description: Standard error response
    ApiError:
      type: object
      properties:
        code:
          type: string
          description: Machine-readable error code
        message:
          type: string
          description: Human-readable error message
        field:
          description: Field path associated with the error
          type: string
        details:
          description: Additional error context
          type: object
          additionalProperties: {}
      required:
        - code
        - message
      additionalProperties: false
      description: Structured error object
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key or access token

````

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