# Delete invoice attachment

## Deletes an invoice attachment.

> Permanently removes the attachment and its file. This operation cannot be undone.

```json
{"openapi":"3.0.1","info":{"title":"Marketplace API","version":"5.0.5201-gb9762151"},"servers":[{"url":"https://api.platform.softwareone.com"}],"paths":{"/public/v1/billing/invoices/{invoiceId}/attachments/{id}":{"delete":{"tags":["InvoiceAttachments"],"summary":"Deletes an invoice attachment.","description":"Permanently removes the attachment and its file. This operation cannot be undone.","parameters":[{"name":"invoiceId","in":"path","description":"The ID of the invoice to which the attachment belongs.","required":true,"schema":{"type":"string"}},{"name":"id","in":"path","description":"The ID of the attachment to delete.","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"No Content"},"404":{"description":"Not Found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProblemDetails"}}}}}}}},"components":{"schemas":{"ProblemDetails":{"type":"object","properties":{"type":{"type":"string","nullable":true},"title":{"type":"string","nullable":true},"status":{"type":"integer","format":"int32","nullable":true},"detail":{"type":"string","nullable":true},"instance":{"type":"string","nullable":true}},"additionalProperties":{}}}}}
```
