# Is anyone aware of ANY way we can delink/unlink mentions efficiently?

**URL:** <https://forum.obsidian.md/t/is-anyone-aware-of-any-way-we-can-delink-unlink-mentions-efficiently/32997>\
**Category:** Help\
**Tags:** backlinks, graph-view, keyboard-shortcut, unlinked, internal-links\
**Created:** [February 23, 2022, 3:51pm UTC](https://forum.obsidian.md/t/is-anyone-aware-of-any-way-we-can-delink-unlink-mentions-efficiently/32997 "2022-02-23T15:51:54Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![yubo](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/y/d9b06d/32.png) [@yubo](https://forum.obsidian.md/u/yubo)\
**Post date:** [February 23, 2022, 3:51pm UTC](https://forum.obsidian.md/t/is-anyone-aware-of-any-way-we-can-delink-unlink-mentions-efficiently/32997/1 "2022-02-23T15:51:54Z")

</div>

Hello, Obsidian fans and pros, 👋

I am trying to clean up my vault a little bit, there are some notes I no longer see value in having them linked to every occurrence adding clutters to my graph & vault - So I would like to remove all of the linked mentions that they already have and I thought that would be refreshing (and necessary at this point!)

I imagined obsidian would have this feature, but I just checked pretty thoroughly, seems like I was wrong about that?

to rephrase my question: manually clicking into every mention and manually deleting the “[[” and “]]” of every occurrence is extremely time-consuming with some notes that have hundreds of mentions, this **can’t be** the **only** way to achieve my objectives, right? 😳 😳 or perhaps using a third-party plug-in or software or literally anything?

I would be very grateful if someone can teach me how to do it!  
any input appreciated, \<3

---

<div class="post-metadata">

**Author:** ![echoreflection](https://forum.obsidian.md/user_avatar/forum.obsidian.md/echoreflection/32/19211_2.png) [@echoreflection](https://forum.obsidian.md/u/echoreflection)\
**Post date:** [February 23, 2022, 5:11pm UTC](https://forum.obsidian.md/t/is-anyone-aware-of-any-way-we-can-delink-unlink-mentions-efficiently/32997/2 "2022-02-23T17:11:31Z")

</div>

I approve of this idea, but so far am not aware of a solution.

---

<div class="post-metadata">

**Author:** ![unrelated](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/u/df705f/32.png) [@unrelated](https://forum.obsidian.md/u/unrelated)\
**Post date:** [February 23, 2022, 6:49pm UTC](https://forum.obsidian.md/t/is-anyone-aware-of-any-way-we-can-delink-unlink-mentions-efficiently/32997/3 "2022-02-23T18:49:31Z")

</div>

One of the benefits of the plain-text, own-your-own-files system that Obsidian uses is that you could write a little program outside of Obsidian to do this: e.g. a shell command that goes through your vault recursively and searches for the mention, and replaces it everywhere with however you want it replaced.

I think this should be fairly easy, but I’d need to do some research on how to do it. I always forget when to use `sed` vs `awk` vs `grep` but I think you’d probably want to use `sed`.

As a #feature-requests it could be nice to have an _ignore list_, which tells Obsidian to ignore certain files in graph view. It sounds like @yubo is mainly concerned with clutter in graph view, but it would probably still be useful to keep the original mentions for navigation. An ignore list would say “keep the mentions to this file, but don’t show in graph view.”

---

<div class="post-metadata">

**Author:** ![yubo](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/y/d9b06d/32.png) [@yubo](https://forum.obsidian.md/u/yubo)\
**Post date:** [February 24, 2022, 12:57pm UTC](https://forum.obsidian.md/t/is-anyone-aware-of-any-way-we-can-delink-unlink-mentions-efficiently/32997/4 "2022-02-24T12:57:48Z")

</div>

thank you for replying,

i’m not familiar with the shell command at all, could you please hint me to the right direction to actually achieve that?

well, personally, i’d like my graph to show every link in my vault, that gives me a quick overview of everything and that’s why i want to remove all the links that i no longer see value in, so that i can preserve only the valuable ones; then with that, i would be able to tell, for example, which topics (note nods) have i been putting most of my energy & time into building my knowledge and see the relationships between them at a glance, etc. etc. and this is the reason why i LOVE Obsidian.

If i start using an ignore list as you proposed, there would be a lot of those valueless connections hidden under the carpet, not actually contributing anything and giving me discomfort for knowing that they still exist LoL

but of course that’s my personal preference, I’m pretty content with the features Obsidian offers at the moment

---

<div class="post-metadata">

**Author:** ![yubo](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/y/d9b06d/32.png) [@yubo](https://forum.obsidian.md/u/yubo)\
**Post date:** [February 24, 2022, 1:01pm UTC](https://forum.obsidian.md/t/is-anyone-aware-of-any-way-we-can-delink-unlink-mentions-efficiently/32997/5 "2022-02-24T13:01:26Z")

</div>

🤝🤝🤝

i hope there is a way to do that,  
and additionally, it would be really sweet if we can do the opposite efficiently as well - to link all the unlink mentions with one click

these two features will certainly give Obsidian even more flexibility, making it **even more** appealing

---

<div class="post-metadata">

**Author:** ![efemkay](https://forum.obsidian.md/user_avatar/forum.obsidian.md/efemkay/32/26644_2.png) [@efemkay](https://forum.obsidian.md/u/efemkay)\
**Post date:** [February 24, 2022, 2:28pm UTC](https://forum.obsidian.md/t/is-anyone-aware-of-any-way-we-can-delink-unlink-mentions-efficiently/32997/6 "2022-02-24T14:28:19Z")

</div>

on top of @unrelated suggestion on using sed, awk or grep, and if u need a solution right now, i highly suggest using [vscode](https://code.visualstudio.com/) to achieve the very same thing.

once u have vscode installed u can open your vault with `File > Open Folder` and choose your Obsidian vault. then use `Find in Folder...` to search and replace content of your notes/files. vscode is better at bulk search and replace. u can see at my screenshot below that u can choose to replace only certain links or all links it found.

 ![image](https://forum.obsidian.md/uploads/default/original/3X/d/f/dfd8f07373405e43a6f6de57d8259f3b4f90010d.png)

---

<div class="post-metadata">

**Author:** ![unrelated](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/u/df705f/32.png) [@unrelated](https://forum.obsidian.md/u/unrelated)\
**Post date:** [February 24, 2022, 5:48pm UTC](https://forum.obsidian.md/t/is-anyone-aware-of-any-way-we-can-delink-unlink-mentions-efficiently/32997/7 "2022-02-24T17:48:51Z")

</div>

@efemkay’s suggestion is a much more accessible approach to doing the same thing.

When you’re doing the Find & Replace you could set replace to something like [[link]] so that the link text remains, but the link is broken. When you want to reconnect the link, you would do the opposite Find & Replace.

**Unlink**  
Find: [[Link Text]]  
Replace: [[Link Text]]

**Relink**  
Find: [[Link Text]]  
Replace: [[Link Text]]

Instead of [[ you could also use any symbols you like – the goal is just to use punctuation that will let you find the mention again.

---

<div class="post-metadata">

**Author:** ![yubo](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/y/d9b06d/32.png) [@yubo](https://forum.obsidian.md/u/yubo)\
**Post date:** [February 25, 2022, 10:30pm UTC](https://forum.obsidian.md/t/is-anyone-aware-of-any-way-we-can-delink-unlink-mentions-efficiently/32997/8 "2022-02-25T22:30:40Z")

</div>

_INCREDIBLE_.

i’ve tried it and it does exactly what i wanted to do!! i just need to do it for each aliases of my Obsidian notes

vscode looks pretty powerful; never knew software like this that can find & replace the content across a range of plain text files 👍🏻👍🏻

thank you soo much! this not only solved my initial problem but also will definitely be very helpful in future scenarios 😄

---

<div class="post-metadata">

**Author:** ![yubo](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/y/d9b06d/32.png) [@yubo](https://forum.obsidian.md/u/yubo)\
**Post date:** [February 25, 2022, 10:42pm UTC](https://forum.obsidian.md/t/is-anyone-aware-of-any-way-we-can-delink-unlink-mentions-efficiently/32997/9 "2022-02-25T22:42:24Z")

</div>

> [@unrelated](#):
>
> @efemkay’s suggestion is a much more accessible approach to doing the same thing.

yes, @efemkay‘s suggestion was a perfect solution to do this.  
thank you for bringing it up too 🙏 😄

> [@unrelated](#):
>
> When you’re doing the Find & Replace you could set replace to something like [[link]] so that the link text remains, but the link is broken. When you want to reconnect the link, you would do the opposite Find & Replace.
> 
> **Unlink**  
> Find: [[Link Text]]  
> Replace: [[Link Text]]
> 
> **Relink**  
> Find: [[Link Text]]  
> Replace: [[Link Text]]
> 
> Instead of [[ you could also use any symbols you like – the goal is just to use punctuation that will let you find the mention again.

hmm 🤔 for this i think the Unlink Mentions feature of Obsidian does this pretty well for me

---

<div class="post-metadata">

**Author:** ![yubo](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/y/d9b06d/32.png) [@yubo](https://forum.obsidian.md/u/yubo)\
**Post date:** [February 25, 2022, 10:44pm UTC](https://forum.obsidian.md/t/is-anyone-aware-of-any-way-we-can-delink-unlink-mentions-efficiently/32997/10 "2022-02-25T22:44:38Z")

</div>

@efemkay provided a solution to achieve this using an external software, check it out if you like

---

<div class="post-metadata">

**Author:** ![GLight](https://forum.obsidian.md/user_avatar/forum.obsidian.md/glight/32/4851_2.png) [@GLight](https://forum.obsidian.md/u/GLight)\
**Post date:** [February 27, 2022, 10:17am UTC](https://forum.obsidian.md/t/is-anyone-aware-of-any-way-we-can-delink-unlink-mentions-efficiently/32997/11 "2022-02-27T10:17:40Z")

</div>

Thanks!

This solution is inspiring.  
I used to use the sed. But, after reading your post, I tried the Atom. The Atom can do the find and replace for the files within the folders in a project.

---

<div class="post-metadata">

**Author:** ![system](https://forum.obsidian.md/uploads/default/original/3X/b/e/bec35fbd23ab28909bb6bfe62cb32eb82dd34019.png) [@system](https://forum.obsidian.md/u/system)\
**Post date:** [March 6, 2022, 10:18am UTC](https://forum.obsidian.md/t/is-anyone-aware-of-any-way-we-can-delink-unlink-mentions-efficiently/32997/12 "2022-03-06T10:18:14Z")

</div>

Closed on March 6, 2022, 10:18am UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
