Hi Mhazdra. Have you tried this:
1. Control A to select all tracks in track view then
2. Click and drag in the time ruler to select the space that contains empty phantom measures then
3. Choose edit>delete special
4. Select all options in the delete dialogue