removeLayerDictionaryEntry function

Removes an entry from a layer dictionary