square.onInvoiceDeleted subscribes to invoice.deleted for the selected seller. It requires INVOICES_READ.
Example
automations/square-on-invoice-deleted.automation.ts
Event
A draft invoice was deleted. A deleted invoice is removed entirely from the seller account (including any attachments) and cannot be retrieved. The signal resolves to the officialSquare.InvoiceDeletedEvent payload with type narrowed to invoice.deleted.