Delete knowledge
The Delete Knowledge feature allows your agent to remove information from your knowledge table—making it easy to manage and keep your data relevant and up to date.
Add the ‘Delete Knowledge’ Tool step to your Tool
You can add the ‘Delete Knowledge’ Tool step to your Tool by:
-
Creating a new Tool, then searching for the ‘Delete Knowledge’ Tool step
-
Click ‘Expand’ to see the full Tool step
-
Select the knowledge set you would like to use.
-
Filter condition: “and” vs “or” when matching data to delete:
- Use and when all specified conditions must match for a row to be deleted.
- Use or when any of the conditions can match.
Filter condition only applies if you include more than one object in the filter
-
Filters: Accepts an array of objects, where each object corresponds to a row. Add more objects to delete multiple rows at once.
Common errors
Formatting issues
Formatting issues
This indicates that there is a formatting issue in the “Filters” input field. Make sure your object is formatted correctly. Expected property name or '}' in JSON at...
Incorrect data type
Incorrect data type
This means the Filter being used is not a JSON. Invalid JSON
Formatting Examples
Example 1: Delete single condition
Example 2: Delete single condition
Example 3: Delete multiple conditions (or)
Example 3: Delete multiple conditions (and)
Ensure to separate each object with a comma if inserting multiple rows.
Frequently asked questions
What’s the difference between using “AND” and “OR”?
- Use AND when all filter conditions must be true for a row to be deleted.
- Use OR when any one of the conditions can match.
This only applies when you include more than one object in the filter array.
Can I delete multiple rows at once?
Yes. Any row that matches the filter condition you have specified will be deleted.
What if my filters don’t match any rows?
If no rows match the provided conditions, no data will be deleted. Make sure your filter values exactly match the data in the knowledge set (e.g., casing, field names, etc.).