Skip to Content
Docs

Remove pages or a folder from a Website source

POST
/api/website/remove

Remove pages or a folder from a Website source. The config changes now: a page added by address leaves the list; one found by a site's crawl (or a whole folder) is skipped in later syncs. Their chunks and tree entries go in a background task (task_id), after any running sync; a 500 with code queue_failed when the config was saved but the task couldn't be queued. A page an older url, crawler or sitemap source stored without its address is matched by the address on its chunks; when none is found it is still removed, by its path, and the config is left as it is.

Personal access token scope: sources:write.

Authorization

bearer
headerAuthorizationBearer <token>

A session token or a personal access token. Leave it empty when the instance runs without authentication (AUTH_TYPE unset).

Request Body

application/json
  1. body
directory_path?string

Tree path of a folder to remove

file_paths?array<string>

Tree paths of pages to remove, up to 1000

source_id*string

Source ID

Response Body

Success

Example Request
curl -X POST 'http://localhost:7091/api/website/remove' \  -H 'Content-Type: application/json' \  -d '{  "source_id": "string"}'
Example Response200
Empty