Delete an invoice-specific attachment
delete_sales_invoice_attachmentPermanently remove an attachment from a sales invoice by providing the invoice and attachment IDs. The file is deleted from storage.
Instructions
Delete an invoice-specific attachment.
Delete a document-specific attachment from a sales invoice. The file is permanently removed from storage.
[Sales Invoices] DELETE /invoices/sales/{id}/attachments/{attachment_id}
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>",
"attachment_id": "<attachment_id>"
},
"name": "delete_sales_invoice_attachment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The ID of the sales invoice. | |
| attachment_id | Yes | The ID of the attachment to delete. | |
| administration | No | The client administration to act on. Only one is configured: default. |