How do I bulk delete appointments and orders/invoices?

Our API developers synced appointments and orders/invoices and did it wrong, so now people are showing 20-25 of the same order/invoice and same with appointments.
How can I bulk delete them? The person on the help chat was not helpful at all. I was told that they can be bulk deleted on the backend. How?