getridkeys=session.xyDataObjects.keys() for i in range(0,len(getridkeys)): del session.xyDataObjects[getridkeys[i]]