delete confirm() $scope to $rootScope