try {
    unless(isLoggedInUser, {
      code: 401,
      msg: 'You must be authenticated to remove a folder from a library'
    })(ctx);