Tabela NSInternalInconsistencyExceptionExclusão da linha

Swift 3.0 iOS 10.x

Usando este código para tentar excluir uma linha em uma tabela ...

override func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCellEditingStyle, forRowAt indexPath: IndexPath) {
    if editingStyle == UITableViewCellEditingStyle.delete {
        print("DELETE \(indexPath)")
        self.tableView.deleteRows(at: [indexPath], with: UITableViewRowAnimation.automatic)


    }
}

Isso falha com a mensagem de erro?

2017-05-29 13:36:23.843228+0200[939:576777] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in section 0.  The number of rows contained in an existing section after the update (9) must be equal to the number of rows contained in that section before the update (9), plus or minus the number of rows inserted or deleted from that section (0 inserted, 1 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out).'

O que parece justo o suficiente, apenas este é o código da placa da caldeira? Estou fazendo pouco mais do que clicar no botão vermelho?

Sim, existem 3 linhas aqui ... no meu código que caiu houve 9.

O que eu perdi aqui? Imprimiu o indexPath retornado aqui e, de fato, estava errado, mas espere, não o configurei. Este método fez?

DELETE [0, 3]

questionAnswers(1)

yourAnswerToTheQuestion