If the payable has been posted and a check has been written against it, you need to void the check.
If the payable has been posted but a check has NOT been written against it, you can delete the transaction by highlighting the payable in the Print A/P Checks window (to open, select A/P > Print A/P Checks) and clicking Delete.