Here are the steps on how to unpost vouchers:
Unposting a Debit Memo transaction is available only if it is not yet applied to a voucher. Else, Unpost button is disabled and unposting is not allowed.