EDIT: As said by the other answers below, what is important in the below code is calling ToList(). This will create a copy of dict which you will be able to iterate over while removing the items from dict without changing the collection you are iterating over.
You could do this by using something like
dict.ToList().ForEach(a => { if (a.Key.Contains('/') dict.Remove(a.Key); });