To remove the deleted sections, you can simply drag the remaining pieces to the left using the mouse until all the sections are flush against the left edge of the timeline, with no spaces.
A shortcut is the "Pack Timeline" command, or its shortcut key, F12.