Remove Silence from Audio Region… ⌃X
Remove silence from regions of audio files. There’s no sense processing the audio file if it is “silent”. Silence is determined by length of regions below thresholds with “attack” and “release” values.
Remove silent passages in a Logic Pro project — Apple Support
You can remove silent passages from audio regions in the Remove Silence window. The basic process is simple: all amplitude values below a threshold level are removed, and new regions are created from the remaining passages.