def clear(self):
        """Empties the capture of any saved packets."""
        self._packets = []
        self._current_packet = 0
Empties the capture of any saved packets.
src/pyshark/capture/capture.py