Delete BlockReference if not meeting a criteria

Hi, i am trying to create blocks at each endo of polylines with elevations and then delete the blocks that won’t have an elevation that matches a surface. i don’t see any node for deleting blockreference on dynamo or the civil 3d tool kit

you have object.delete