Run canExecute before executing delete command.