---
updatedAt: 2026-05-27T08:00:07.000Z
agentTools:
  projectIndex: https://docs.d-id.com/llms.txt
---

# Delete a Knowledge

Knowledge will be deleted with all documents in it. Knowledge that was deleted will no longer be available for any agent.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Realtime Endpoints",
    "version": "0.1"
  },
  "servers": [
    {
      "url": "https://api.d-id.com/"
    }
  ],
  "paths": {
    "/knowledge/{knowledgeId}": {
      "delete": {
        "operationId": "Delete1",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "knowledge": {
                      "type": "boolean"
                    },
                    "deletedDocuments": {}
                  },
                  "required": [
                    "knowledge",
                    "deletedDocuments"
                  ],
                  "type": "object"
                }
              }
            }
          },
          "401": {
            "description": "AuthorizationError",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JsonError"
                },
                "examples": {
                  "Example 1": {
                    "value": {
                      "kind": "AuthorizationError",
                      "description": "user unauthenticated"
                    }
                  }
                }
              }
            }
          }
        },
        "description": "Knowledge will be deleted with all documents in it. Knowledge that was deleted will no longer be available for any agent.",
        "summary": "Delete a Knowledge",
        "tags": [
          "Knowledge"
        ],
        "security": [
          {
            "basic": []
          },
          {
            "bearer": []
          }
        ],
        "parameters": [
          {
            "description": "Id of knowledge",
            "in": "path",
            "name": "knowledgeId",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "JsonError": {
        "properties": {
          "kind": {
            "type": "string"
          },
          "description": {
            "type": "string"
          },
          "details": {},
          "internal": {
            "type": "string"
          }
        },
        "required": [
          "kind",
          "description"
        ],
        "type": "object",
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "basic": {
        "type": "http",
        "scheme": "basic"
      }
    }
  },
  "x-readme": {
    "samples-languages": [
      "curl"
    ]
  }
}
```