delete_pages_by_pattern
Delete website pages that match URL patterns. Use glob patterns to remove outdated documentation or version-specific content.
Instructions
Delete website pages matching URL patterns (useful for cleaning up version URLs, static assets)
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"website_id": "<website_id>",
"url_patterns": "<url_patterns>"
},
"name": "delete_pages_by_pattern"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| website_id | Yes | The unique identifier of the website whose pages should be deleted. Get this from list_documentation_sources. | |
| url_patterns | Yes | Array of URL patterns to match for deletion. Uses glob patterns (* for wildcards). For example, ["*/v1/*", "*/legacy/*"] will delete pages with /v1/ or /legacy/ in their URLs. | |
| dry_run | No | Whether to perform a dry run (preview) without actually deleting pages. Set to false to actually delete pages. Default is true for safety. |