Folders wont remove from finder sidebar (El capitan bug)

I have a folder in my finder sidebar under favourites.

I moved, then also renamed, the folder that points to (without removing it from the finder sidebar).

Now I want to remove it from finder favourites (via right click, remove from sidebar), but finder won't let me, this seems to be disabled. What should I do?

Hmmm... I just tried to remove a folder that I hadn't removed or renamed, and the situation is the same.


Solution 1:

What worked for me was going to finder/preferences/sidebar, and unchecking then re-checking my user name folder (the offending folders did not appear there), which had the effect of making the offending folders disappear.