> ## 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 topic

> Removes a topic and pulls its slug from every source and chunk. The MATERIAL is kept: an untagged passage becomes universal. To delete material, delete the source.



## OpenAPI

````yaml /openapi.json delete /v1/knowledge/topics/{slug}
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/knowledge/topics/{slug}:
    delete:
      tags:
        - Knowledge
      summary: Delete a topic
      description: >-
        Removes a topic and pulls its slug from every source and chunk. The
        MATERIAL is kept: an untagged passage becomes universal. To delete
        material, delete the source.
      operationId: PublicKnowledgeController_deleteTopic_v1
      parameters:
        - name: slug
          required: true
          in: path
          schema:
            type: string
        - name: agentId
          required: false
          in: query
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeletePublicKnowledgeTopicDto'
        '404':
          description: No such topic in this workspace
      security:
        - api-key: []
components:
  schemas:
    DeletePublicKnowledgeTopicDto:
      type: object
      properties:
        slug:
          type: string
        untaggedSources:
          type: number
        untaggedChunks:
          type: number
      required:
        - slug
        - untaggedSources
        - untaggedChunks
  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.

````