[Dev] Remove he segment when all segments are deleted in a segment.