Add a function mapDelete to delete a member from a map.