You need to open the order in Megaventory and click More and Cancel.
It is possible that you don't see this option and the Purchase Order has been invoiced. In this case you need to go to the Related Document tab, open them, cancel them and when all the invoices are cancelled, you can also cancel the order itself.
Or login to your account.