Skip to main content
Version: v3

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 optionsv3
application/json

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.

application/json

Selected pages deleted successfully

Schema
    successbooleanrequired

    Indicates if the operation was successful

    deletedCountnumberrequired

    Number of URLs deleted

    messagestringrequired

    Success message