Remove unwanted tags from Notes in Obsidian

Over time, your tagging system in Obsidian may evolve. For example, you might add multiple tags to each Daily Note at the start, but later realise that one of them is unnecessary. Instead of editing every file manually, you can use Visual Studio Code to quickly remove a tag from all Daily Notes at once.

In this guide, we’ll demonstrate how to bulk-remove a tag from the YAML properties of your notes, leaving only the tags you want to keep.


Requirements

Step-by-step

  1. Open your vault in VS Code
    File → Open Folder… → ~/Documents/Brain

  2. Open global search
    Press ⌘⇧F.

  3. Restrict the search to Daily Notes
    In files to include, enter:

Daily Notes/*.md
^\s*-\s*Tag2\s*$

---
tags:
  - Tag1
---

Troubleshooting