Deleting Attached PDF Document Through The API

Hello,

Is deleting or replacing an attached document possible through the API? I have been able to successfully attach a document to an invoice through the API. I need to replace the originally attached PDF if I update the invoice through the API as well.

I am using a hosted environment with v4 of Invoice Ninja.

Thank you

HI,

I believe you can send a DELETE request to /api/v1/documents/${document.id}