       });
    
                get.success(function (data, status) {
                    result = {}
                    for(var i = 0; i < data.length; i++) {
                         obj = data[i];
                        result[obj.name] = obj._id;
                    }

                    if (result.hasOwnProperty($scope.name) === true) {
                        var put = $http({
                            method: "DELETE",
                            url: "/api/v2/notes/" + $scope.name,
            