How to close all Finder inspector windows?

Solution 1:

You could also run this in AppleScript Editor:

tell application "Finder" to close every information window

Solution 2:

Doing Option+Command+W will close all windows at once.

This works for any window based Application.