Delete attachment
documentedDelete an attachment.
DELETE /Attachments/{AttachmentID}Attachmentsno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
I’m unable to provide a valid DELETE /Attachments/{AttachmentID} curl for Xero because there is no documented DELETE endpoint for attachments in the official Accounting API as of Feb 18, 2026. The supported attachment operations documented by Xero include retrieving attachments (e.g., GET /Accounts/{AccountID}/Attachments/{AttachmentID} and GET /Accounts/{AccountID}/Attachments/{FileName}) and uploading attachments (PUT /Accounts/{AccountID}/Attachments/{FileName}). There is no documented DELETE by AttachmentID in the public docs. ([xeroapi.github.io](https://xeroapi.github.io/xero-ruby/accounting/index.html?utm_source=openai))
npx -y keychains@latest curl "https://api.xero.com/api.xro/2.0/Accounts/{{$AccountID}}/Attachments/{{$FileName}}" \\
-X PUT \\
-H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \\
-H "xero-tenant-id: {{$XERO_TENANT_ID}}" \\
-H "Content-Type: application/octet-stream" \\
--data-binary @{{$FILE_PATH}}