Delete trained pages
DELETE/knowledge-bases/crawler
Removes trained website pages from a knowledge base so the AI no longer references them. WHEN TO USE: use this when you need to drop specific or all trained URLs; use trainDiscoveredUrls to add pages; use getAllWebsiteUrlsDataByKnowledgeBase to list what is trained. RETURNS: whether the delete succeeded.
Request
Version stringrequired
API Version
Available options
v3- application/json
- Body
- Example (auto)
Bodyrequired
locationIdstringrequired
Location ID as string
knowledgeBaseIdstring
Knowledge base ID as string (optional)
urlIdsstring[]required
List of URL ids
deleteAllbooleanrequired
delete all flag
excludeUrlIdsstring[]
URL IDs to exclude from a deleteAll operation (select-all-minus-some flow)
searchstring
Substring filter (case-insensitive) matched against url or title to scope deleteAll to filtered rows only. Mirrors the search semantics of the list endpoint.
{
"locationId": "qIyivCmsuEOSnyoFYEej",
"knowledgeBaseId": "I1rITlYLJofFosIqC4Np",
"urlIds": [
"689268c7a64d801ef7bb44aa"
],
"deleteAll": false,
"excludeUrlIds": [
"689268c7a64d801ef7bb44aa"
],
"search": "blog"
}
Selected pages deleted successfully
- application/json
- Schema
- Example (auto)
Schema
successbooleanrequired
Indicates if the operation was successful
deletedCountnumberrequired
Number of URLs deleted
messagestringrequired
Success message
{
"success": true,
"deletedCount": 2,
"message": "URLs deleted successfully"
}