How to reverse a Zoho Inventory invoice completely

How to reverse a Zoho Inventory invoice completely

Been doing some testing with the Zoho API (works great) and I was able to create an Invoice in DRAFT mode, then I went and record the payment to verify that the stock was reduced. Again, worked great.

Now I want to delete that test invoice, what's the best approach to recover the stock? Should I just delete the invoice or should I delete the payment and then the invoice?

Thanks a lot.