Open Context Protocol is live! 🚀 Read the launch post

deleteMedia

Delete the Media resource.

Details

  • Method: DELETE
  • Path: /2010-04-01/Accounts/{AccountSid}/Messages/{MessageSid}/Media/{Sid}.json
  • Operation ID: DeleteMedia

Parameters

{
  "AccountSid": {
    "description": "The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that is associated with the Media resource.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "MessageSid": {
    "description": "The SID of the Message resource that is associated with the Media resource.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "Sid": {
    "description": "The unique identifier of the to-be-deleted Media resource.",
    "required": true,
    "location": "path",
    "type": "string"
  }
}

Usage

from ocp_agent import OCPAgent

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

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