diff --git a/src/groups.js b/src/groups.js index eb87da386..db9c5a341 100644 --- a/src/groups.js +++ b/src/groups.js @@ -58,8 +58,6 @@ GroupsError.INTERNAL_ERROR = 'Internal Error'; GroupsError.ALREADY_EXISTS = 'Already Exists'; GroupsError.NOT_FOUND = 'Not Found'; GroupsError.BAD_FIELD = 'Field error'; -GroupsError.NOT_EMPTY = 'Not Empty'; -GroupsError.NOT_ALLOWED = 'Not Allowed'; // keep this in sync with validateUsername function validateGroupname(name) { diff --git a/src/routes/groups.js b/src/routes/groups.js index c41e47181..f9ebeb870 100644 --- a/src/routes/groups.js +++ b/src/routes/groups.js @@ -86,7 +86,6 @@ function remove(req, res, next) { groups.remove(req.params.groupId, function (error) { if (error && error.reason === GroupsError.NOT_FOUND) return next(new HttpError(404, 'Group not found')); - if (error && error.reason === GroupsError.NOT_ALLOWED) return next(new HttpError(409, 'Group deletion not allowed')); if (error) return next(new HttpError(500, error)); next(new HttpSuccess(204));