Use the autocrop action to resize your pcb-board to extants
Autocrop finds the extents of your existing layout and resizes the board dimensions to contain only your parts plus a margin along the edge.
Syntax:
autocrop();
Use:
You may want to bind autocrop to a key in a menu patch.
Issues:
Autocrop will move the objects to crop the layout, and as a consequence autocrop() plugin will take time to calculate for complex layouts.
Autocrop is not undoable.
Edge clearance is fixed at 5*line spacing