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

# Delete a site

> Deletes the SITE and every page in it, and frees the address. The agent, its knowledge, its images and its widget keys SURVIVE: they were never part of the site.



## OpenAPI

````yaml /openapi.json delete /v1/projects/{projectId}
openapi: 3.0.0
info:
  title: wondeya Developer API
  description: >-
    The public REST API for building on wondeya: agents, projects, pages,
    knowledge, assets, brand, theme, usage, retrieval and chat, authenticated by
    a workspace API key (`Authorization: Bearer wdy_live_…`).
  version: 0.1.0
  contact:
    name: wondeya
    url: https://wondeya.com
    email: team@wondeya.com
  license:
    name: Proprietary
    url: https://wondeya.com/terms
servers:
  - url: https://api.wondeya.com
    description: Production
  - url: http://localhost:8080
    description: Development
security: []
tags:
  - name: Identity
  - name: Agents
  - name: Projects
  - name: Pages
  - name: Knowledge
  - name: Assets
  - name: Brand
  - name: Usage
  - name: Chat
paths:
  /v1/projects/{projectId}:
    delete:
      tags:
        - Projects
      summary: Delete a site
      description: >-
        Deletes the SITE and every page in it, and frees the address. The agent,
        its knowledge, its images and its widget keys SURVIVE: they were never
        part of the site.
      operationId: PublicProjectsController_remove_v1
      parameters:
        - name: projectId
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeletePublicProjectDto'
        '404':
          description: No such site in this workspace
      security:
        - api-key: []
components:
  schemas:
    DeletePublicProjectDto:
      type: object
      properties:
        projectId:
          type: string
        pagesDeleted:
          type: number
          description: How many pages went with the site.
      required:
        - projectId
        - pagesDeleted
  securitySchemes:
    api-key:
      scheme: bearer
      bearerFormat: opaque
      type: http
      description: >-
        A workspace API key: wdy_live_… / wdy_test_…. Created at POST
        /workspaces/{tenantId}/keys and shown exactly once.

````