Add the ‘Delete Knowledge’ Tool step to your Tool
-
Creating a new Tool, then clicking
+ Add Step - Searching for and adding the ‘Delete Knowledge’ Tool step
- Clicking ‘Expand’ to see the full Tool step
- Selecting the knowledge table you would like to access
-
Filter condition: “and” vs “or” when matching data to delete:
- Use
andwhen all specified conditions must match for a row to be deleted. - Use
orwhen any of the conditions can match.
Filter condition only applies if you include more than one object in the filter - Use
- Filters: Accepts a JSON selection of objects, where each object corresponds to a row. Add more objects as outlined in the formatting examples below to delete multiple rows at once.
-
Click
Run stepto test out the Tool
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 JSONFormatting 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.
Using Variables in JSON
You can use variables from Tool inputs and other Tool steps in the Filters field. For detailed information on how to use variables in JSON for Knowledge Tool steps, including variable syntax and typing, see Using Variables in JSON. For Knowledge Tool steps, all variables should be wrapped in quotes in the JSON format:"{{variable_name}}". The filter values will be matched against your knowledge table data based on the column types.
Frequently asked questions (FAQs)
What's the difference between using 'AND' and 'OR'?
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?
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?
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.).

