delete_knowledge_file
Performs permanent removal of outdated or incorrect knowledge documents, including deletion from the search index, for the Knowledge MCP Server. Verify document accuracy and consider alternatives before irreversible deletion.
Instructions
Permanently delete a knowledge document - this action cannot be undone.
When to use this tool:
- Document is obsolete or incorrect
- Consolidating duplicate documents
- Removing outdated information
- Explicit request to delete
Key features:
- Complete removal of document
- Removes from search index
- Permanent deletion
You should:
- Verify document exists first
- Check if content should be preserved elsewhere
- Confirm filename is correct (with .md extension)
- Understand deletion is permanent
- Consider if update would be better
DO NOT use when:
- Document might be useful later
- Should be updated instead
- Unsure about the impact
Returns: {success: bool, message?: str, error?: str}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filename | Yes | Full filename including .md extension | |
| project_id | Yes | The project identifier |