Actions5
Forget (Delete by ID)
AI-generatedSummary
Delete a specific entry from the PGVector knowledge base by its exact ID.
Inputs
- id (required) — The exact ID to delete. The AI must provide this value. An optional idFormatHint can be displayed in the tool description to guide the AI's understanding of the expected ID format.
- returnDeletedContent — When enabled, the content of the deleted entry is fetched and included in the response (first 200 characters). Default: false.
- collection (required) — Name of the knowledge base collection (partition value). Default: 'knowledge'.
Output shape
A text confirmation message with one of the following forms: 'Deleted entry with ID '{id}'' (returnDeletedContent=false), 'Deleted entry '{id}'. Content was: {content snippet}' (returnDeletedContent=true and entry exists, content truncated to 200 chars), or 'No entry found with ID '{id}'' (no matching entry).
The returned string is generated by the underlying
u.deletecall, which checksdeletedCountand, whenreturnDeletedContentis true, pre-fetches content viau.getbefore deletion.
Examples
Example 1: Successful deletion with content return
returnDeletedContent=true, id='doc-123', collection='knowledge' returns: 'Deleted entry 'doc-123'. Content was: This is the stored content...'
Example 2: Deletion with no content return
returnDeletedContent=false, id='meeting-2024-01-15', collection='knowledge' returns: 'Deleted entry with ID 'meeting-2024-01-15''
Example 3: ID not found
any returnDeletedContent value, id='nonexistent-id' returns: 'No entry found with ID 'nonexistent-id''