If you've incorrectly allocated a supplier credit note to a supplier invoice, you can unallocate them.
If you can't press 'Unallocate transaction', follow our Why can't I unallocate a transaction? article.