'Remove artifacts that came from the datastore.'

def _UnregisterDatastoreArtifacts(self):

    to_remove = []
    for (name, artifact) in self._artifacts.iteritems():
        if artifact.loaded_from.startswith('datastore'):
            to_remove.append(name)
    for key in to_remove:
        self._artifacts.pop(key)
