How can I use Python to clear all non-component drawings from my PCB in KiCad?
To clear all non-component drawings from a PCB in KiCad using Python, you can utilize a script that iterates through and deletes all drawing objects on the board. The provided script demonstrates this:

```python
import pcbnew

board = pcbnew.GetBoard()
for dr in board.GetDrawings():
   board.Delete(dr)

pcbnew.Refresh()
```

This script is ideal for situations where you need to remove all graphical elements, like lines, text, or shapes, that are not part of the electrical components, possibly as part of a design overhaul or to declutter the PCB layout.