async function deleteUsersAndBanIps(channelUrls, ids){

  for(let username of channelUrls){
    let userToDelete = await User.findOne({ channelUrl: username });
    userToDelete.status = 'restricted';
    await userToDelete.save();

    const uploads = await Upload.find({ uploader: userToDelete._id });

    const comments = await Comment.find({ commenter: userToDelete._id });

    for(let upload of uploads){
      upload.visibility = 'removed';
      await upload.save();
    }

    for(let comment of comments){
      comment.visibility = 'removed';
      await comment.save();
    }
  }

  for(let id of ids){
    // console.log(id);

    let siteVisit = await SiteVisit.findOne({ _id: id });

    // console.log(siteVisit);

    siteVisit.blocked = true;
    await siteVisit.save();
  }

  return 'success'
}
find all users for the sitevisits attached to that ip *