#!/bin/sh
sudo rm -rf /Library/Printers/KONICAMINOLTA/C220
sudo rm -rf /Library/Printers/KONICAMINOLTA/C280
sudo rm -rf /Library/Printers/KONICAMINOLTA/C360

# delete multi-language PPD
sudo rm -f /Library/Printers/PPDs/Contents/Resources/KONICAMINOLTAC220.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/KONICAMINOLTAC280.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/KONICAMINOLTAC360.gz

# delete OLD-version PPD (non multi-language-PPD. Ounce only)
sudo rm -f /Library/Printers/PPDs/Contents/Resources/de.lproj/KONICAMINOLTAC220.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/en.lproj/KONICAMINOLTAC220.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/es.lproj/KONICAMINOLTAC220.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/fr.lproj/KONICAMINOLTAC220.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/it.lproj/KONICAMINOLTAC220.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/ja.lproj/KONICAMINOLTAC220.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/ko.lproj/KONICAMINOLTAC220.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/zh_CN.lproj/KONICAMINOLTAC220.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/zh_TW.lproj/KONICAMINOLTAC220.gz

sudo rm -f /Library/Printers/PPDs/Contents/Resources/de.lproj/KONICAMINOLTAC280.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/en.lproj/KONICAMINOLTAC280.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/es.lproj/KONICAMINOLTAC280.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/fr.lproj/KONICAMINOLTAC280.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/it.lproj/KONICAMINOLTAC280.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/ja.lproj/KONICAMINOLTAC280.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/ko.lproj/KONICAMINOLTAC280.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/zh_CN.lproj/KONICAMINOLTAC280.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/zh_TW.lproj/KONICAMINOLTAC280.gz

sudo rm -f /Library/Printers/PPDs/Contents/Resources/de.lproj/KONICAMINOLTAC360.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/en.lproj/KONICAMINOLTAC360.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/es.lproj/KONICAMINOLTAC360.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/fr.lproj/KONICAMINOLTAC360.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/it.lproj/KONICAMINOLTAC360.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/ja.lproj/KONICAMINOLTAC360.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/ko.lproj/KONICAMINOLTAC360.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/zh_CN.lproj/KONICAMINOLTAC360.gz
sudo rm -f /Library/Printers/PPDs/Contents/Resources/zh_TW.lproj/KONICAMINOLTAC360.gz

# delete Admin Plist
sudo rm -f /Library/Preferences/jp.konicaminolta.printers.C360.plist
sudo rm -f /Library/Preferences/jp.konicaminolta.printers.C220.*.plist
sudo rm -f /Library/Preferences/jp.konicaminolta.printers.C280.*.plist
sudo rm -f /Library/Preferences/jp.konicaminolta.printers.C360.*.plist

# delete User Plist
sudo find /Users -name "jp.konicaminolta.printers.C360.plist"   | xargs sudo rm -f
sudo find /Users -name "jp.konicaminolta.printers.C220.*.plist" | xargs sudo rm -f
sudo find /Users -name "jp.konicaminolta.printers.C280.*.plist" | xargs sudo rm -f
sudo find /Users -name "jp.konicaminolta.printers.C360.*.plist" | xargs sudo rm -f
