If you intend to delete sections of audio files that are no longer used in your project, do one of the following:
Select the audio files that you want to optimize in the Project Audio Browser.
-Choose Edit > Select Used.
-Choose Audio File > Optimize File(s).
Logic Pro determines which (file) segments are not contained in any of the regions used in the Tracks area. These segments are deleted, and the remaining portions of the audio file are retained and aligned side-by-side in the file. The regions in the Project Audio Browser are redefined and the project is automatically saved.