Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Latest commit

 

History

History
43 lines (34 loc) · 966 Bytes

README.md

File metadata and controls

43 lines (34 loc) · 966 Bytes

Do not use this software. It's broken.

Warning: this script deletes data from your vault: use at your own risk

  • BACK UP FIRST
  • I have tested it on my own data and am satisfied it "shouldn't" do any bad things but: Always back up your data before running this script

Usage

obsidian-tag-delete.sh -h

Example

obsidian-tag-delete.sh mytag anothertag myfile.md

Assumptions

Per the documentation, this script assumes tags are in the body of your document in this form:

#mytag

Or they can be in the frontmatter (YAML) in this form: ("Tags" may be "tags")

Tags: mytag

Or:

# these will all be deleted by the script
Tags: [mytag, mytag, mytag mytag] 

But not:

Tags:
 - mytag