Sign in

Delete account attachment

documented

Delete an account attachment.

DELETE /Accounts/{AccountID}/Attachments/{AttachmentID}Accountsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

I investigated the official Xero Accounting API documentation for DELETE /Accounts/{AccountID}/Attachments/{AttachmentID} and could not find a documented DELETE endpoint for account attachments. The official docs provide GET endpoints to retrieve attachments (e.g., GET /Accounts/{AccountID}/Attachments and GET /Accounts/{AccountID}/Attachments/{AttachmentID}) and an update path for attachments by filename (e.g., PUT /Accounts/{AccountID}/Attachments/{FileName}), but no delete operation is documented for attachments. ([xeroapi.github.io](https://xeroapi.github.io/Xero-NetStandard/accounting/index.html))

Given that, I can’t provide a valid, working DELETE command for this endpoint. If you’d like, I can instead provide a working curl example for a supported operation (e.g., retrieving an attachment by ID) so you have a ready-to-use pattern. Below is a GET example you can adapt as needed.

npx -y keychains@latest curl "https://api.xero.com/api.xro/2.0/Accounts/{{$account_id}}/Attachments/{{$attachment_id}}" \
  -X GET \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "xero-tenant-id: {{$tenant_id}}" \
  -H "Accept: application/json"
Delete account attachment · Xero · OpenIntegrations