remove function

Remove elements from a map