Only Invoice with a status D can be deleted.Be sure to use that deleted invoice number again so that, no missing invoice will be found in the sequence of the invoice.