- HTTP Request
- URL Parameters
- Example Request
- Response (Success)
- Error Response (Not Found)
- What Gets Deleted
- Deletion Behavior
- Attached Agents
- Processing Status
- Irreversibility
- Common Use Cases
- Remove Outdated Knowledge
- Clean Up Failed Items
- Free Up Team Quota
- Best Practices
- Before Deleting
- Alternative to Deletion
- See Also
Delete Knowledge Item
Deletes a knowledge item and cleans up associated data (chunks in search index, blob storage).
HTTP Request
URL Parameters
Example Request
Response (Success)
Error Response (Not Found)
What Gets Deleted
When you delete a knowledge item, the following data is removed:
- Knowledge Item Record: The main database record
- Chunks: All indexed chunks in the search system
- Embeddings: Vector embeddings for semantic search
- Blob Storage: Document files stored in cloud storage (for document type)
- Agent Associations: All attachments to agents are removed
Deletion Behavior
Attached Agents
- If the knowledge item is attached to one or more agents, it will be automatically detached from all agents before deletion
- Agents will no longer have access to this knowledge in their RAG retrieval
- No need to manually detach before deleting
Processing Status
- Knowledge items can be deleted in any status:
pending,processing,ready, orfailed - If an item is currently
processing, the deletion will cancel the ingestion job
Irreversibility
- Deletion is permanent and cannot be undone
- All processed chunks and embeddings are permanently removed
- Document files are deleted from blob storage
- You will need to re-create and re-process the knowledge item if needed
Common Use Cases
Remove Outdated Knowledge
Clean Up Failed Items
Free Up Team Quota
Best Practices
Before Deleting
- Check Attached Agents: Use Get Knowledge Item to see which agents are using this knowledge
- Notify Users: If agents are actively using this knowledge, inform users before deletion
- Backup Content: If you might need the content later, save the source URL or document file
Alternative to Deletion
If you want to temporarily disable knowledge without deleting:
- Use Detach Knowledge Item from Agent to remove from specific agents
- Keep the knowledge item for potential future use
- Re-attach when needed without re-processing
See Also
- Detach Knowledge Item from Agent - Remove from specific agents without deleting
- Get Knowledge Item - Check which agents are using the knowledge item
- Create Knowledge Item - Create a new knowledge item if needed
