You can delete a document from a transaction as long as it does not contain any fields and has not been processed by any participant yet.
To delete a document, send a request to DELETE /v1/transactions/{transaction_id}/documents/{document_id}
.
curl
https://api.universign.com/v1/transactions/tx_DwYGle91EQZA/documents/doc_6Amd