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)
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. |