removeDictionaryEntry function

Removes an entry from a dictionary