delete_wiki_page
Remove outdated or incorrect wiki pages from Azure DevOps projects by specifying the project, wiki identifier, and page path.
Instructions
Deletes a wiki page by its path.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | The path of the wiki page to delete. | |
| project | Yes | The name or ID of the project. | |
| wiki_identifier | Yes | The name or ID of the wiki. |
Implementation Reference
- The core handler function that implements the deletion of a wiki page by calling the Azure DevOps wiki_client.delete_page API.def delete_wiki_page(self, project, wiki_identifier, path): return self.wiki_client.delete_page( project=project, wiki_identifier=wiki_identifier, path=path )
- mcp_azure_devops/server.py:384-406 (registration)Registers the 'delete_wiki_page' tool with the MCP server, defining its name, description, and input schema for validation.types.Tool( name="delete_wiki_page", description="Deletes a wiki page by its path.", inputSchema={ "type": "object", "properties": { "project": { "type": "string", "description": "The name or ID of the project." }, "wiki_identifier": { "type": "string", "description": "The name or ID of the wiki." }, "path": { "type": "string", "description": "The path of the wiki page to delete." }, }, "required": ["project", "wiki_identifier", "path"], "additionalProperties": False } ),
- mcp_azure_devops/server.py:974-979 (handler)The MCP server dispatcher for the tool call, which invokes the client method and returns a formatted success response.elif name == "delete_wiki_page": self.client.delete_wiki_page(**arguments) return { "message": f"Wiki page '{arguments['path']}' deleted successfully.", "path": arguments['path'] }
- Helper usage of delete_wiki_page within the move_wiki_page function to delete the original page after moving.self.delete_wiki_page( project=project, wiki_identifier=wiki_identifier, path=from_path )