def destroySegment(self, segment):
<EOL>for synapse in segment._synapses:<EOL><INDENT>self._removeSynapseFromPresynapticMap(synapse)<EOL><DEDENT>self._numSynapses -= len(segment._synapses)<EOL>segments = self._cells[segment.cell]._segments<EOL>i = segments.index(segment)<EOL>del segments[i]<EOL>self._freeFlatIdxs.append(segment.flatIdx)<EOL>self._segmentForFlatIdx[segment.flatIdx] = None<EOL>
Destroys a segment.

:param segment: (:class:`Segment`) representing the segment to be destroyed.