Open Context Protocol is live! 🚀 Read the launch post

deletePage

Delete page

Details

  • Method: DELETE
  • Path: /pages/{id}
  • Operation ID: deletePage

Parameters

{
  "id": {
    "description": "The ID of the page to be deleted.",
    "required": true,
    "location": "path",
    "type": "integer",
    "format": "int64"
  },
  "purge": {
    "description": "If attempting to purge the page.",
    "required": false,
    "location": "query",
    "type": "boolean"
  },
  "draft": {
    "description": "If attempting to delete a page that is a draft.",
    "required": false,
    "location": "query",
    "type": "boolean"
  }
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('confluence')

# Call this tool
result = await agent.call_tool('deletePage', {
    # Add required parameters here
})