delete lines when handles are deleted