Can I delete all Invoices (and/or Payments)?

Can I delete all Invoices (and/or Payments)?

I accidentally messed something up with my programmatic approach to adding Invoices and I need to delete them all (but I can't unless I delete each payment individually). There are about 300 Invoices (and payments). Can I delete all payments at once?