How can I remove all tracks from a PCB layout using Python scripting in KiCad?
Removing all tracks from a PCB layout in KiCad can be done using Python scripting. The provided script iterates through all the tracks on the board and deletes them:

```python
import pcbnew

board = pcbnew.GetBoard()
for t in board.GetTracks():
    board.Delete(t)

pcbnew.Refresh()
```

This script is useful for clearing the existing tracks from a PCB, which might be necessary during a redesign or when starting from a blank slate for routing.