Open Context Protocol is live! 🚀 Read the launch post

deleteAttachment

Delete attachment

Details

  • Method: DELETE
  • Path: /attachments/{id}
  • Operation ID: deleteAttachment

Parameters

{
  "id": {
    "description": "The ID of the attachment to be deleted.",
    "required": true,
    "location": "path",
    "type": "integer",
    "format": "int64"
  },
  "purge": {
    "description": "If attempting to purge the attachment.",
    "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('deleteAttachment', {
    # Add required parameters here
})