Delete Invoice In magento 2
/* Script delete invoice */DELETE FROM sales_invoice WHERE entity_id = $invoice_id;DELETE FROM sales_invoice_grid WHERE increment_id = "000000169";/* Script delete invoice */UPDATE sales_orderSET state = "new", status = "pending", base_discount_invoiced = 0, based_shipping_invoiced = 0, base_subtotal_invoiced = 0, base_tax_invoiced = 0, base_total_invoiced = 0, base_total_invoiced_cost = 0, discount_invoiced = 0, shipping_invoiced =...