removed un-used param from purgeRelationship function