Remove All Printer Script

I have tested this in 10.5. This will remove all printers that are listed in system preferences.

Create a script file:


############Being Copy Here ############# 

lpstat -p | awk '{print $2}' | while read printers

do

lpadmin -x $printers

done

############End Copy Here #############

Tags

  • Apple
  • Macbook
  • SSD
  • Linux

Categories

  • Hints 210