debit note cancellations or reversals

Dear ZATCA Team,

We have successfully created an invoice and subsequently issued a debit note linked to it.
We now need to either cancel this debit note or issue a return for it.

Could you please advise on the correct and compliant procedure supported by ZATCA for handling debit note cancellations or reversals?
Additionally, please clarify whether a specific document type or reference flow should be used in such cases (e.g., credit note referencing the debit note).

Best regards,