Delete Document
delete_documentPermanently delete a document from Oblio (only the last in a series). Optionally remove associated payment for invoices. Action cannot be undone.
Instructions
Permanently deletes a document from Oblio via DELETE /api/docs/{type}. Constraint: only the last document in a series can be deleted. This cannot be undone. Set deleteCollect to true to also remove the associated payment (invoices only). Returns: documentType, seriesName, number of the deleted document.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Document type to delete | |
| seriesName | Yes | Document series name | |
| number | Yes | Document number | |
| deleteCollect | No | true to also delete the associated payment collection (invoices only). Default false | |
| idempotencyKey | No | Unique key to prevent duplicate deletion |