The invoice stays on file with its number but stops counting toward any total, and anyone opening its link sees it as cancelled. You can restore it later.
Send
Sales tax report
Tax collected for a period, with a spreadsheet of every invoice in it — for the accountant.