The first script I ever learned. Very simple, and yet extremely usefull.
$*.material = undefined
Running the script will simply clear out and/or delete all the materials assigned to objects in the scene. It doesn’t include maps and materials that are assigned to button parameters like the Environment Map.