Is it possible to clear all non-electrical annotations from a PCB layout using Python in KiCad?
Yes, clearing all non-electrical annotations from a PCB layout is possible using Python in KiCad. The script provided demonstrates how to programmatically remove all drawings, including annotations, graphics, and text elements:

```python
import pcbnew

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

pcbnew.Refresh()
```

This method is particularly helpful for cleaning up the PCB layout, removing unnecessary annotations or graphics that are no longer needed in the design.