Delete a mapfile entry from database.

def _update_map(self, map, name=None, filepath=None):
        """ Delete a mapfile entry from database. """
        if name:
            map.name = name
        if filepath:
            map.filepath = filepath
        Session.commit()