<commit_before>// reset arrays for all users
db.users.update({},
  {
    $set: {
      pinned: [],
      history: [],
      watchedTags: [],
      stars: [],
      readLater: []
    }
  },
  {multi:true}
);

//reset array for specific user
db.users.update({userId : "55d49696-c07d-4b31-929c-29f7c8f1a10a"},
  {
    $set: {
      pinned: [],
      history: [],
      watchedTags: [],
      stars: [],
      readLater: []
    }
  }
);
<commit_msg>add mongo command sample to remove one tag<commit_after>// reset arrays for all users
db.users.update({},
  {
    $set: {
      pinned: [],
      history: [],
      watchedTags: [],
      stars: [],
      readLater: []
    }
  },
  {multi:true}
);


//remove a tag from all bookmarks
db.bookmarks.update(
  { },
  { $pull: { tags: "awesome" } },
  { multi: true }
);


//reset array for specific user
db.users.update({userId : "55d49696-c07d-4b31-929c-29f7c8f1a10a"},
  {
    $set: {
      pinned: [],
      history: [],
      watchedTags: [],
      stars: [],
      readLater: []
    }
  }
);

{'fraction_non_alphanumeric': 0.18383060635226178, 'fraction_numerical': 0.04234841193455245, 'mean_word_length': 2.0952380952380953, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4622073', 'n_tokens_mistral': 411, 'n_tokens_neox': 392, 'n_words': 73}