Here's the shell script for removing and adding printers courtesy of another poster. I haven't tried it recently but it may still work in more recent versions of OS X. Obviously you'll want to test on a single system first. The following notes are also from that other poster:
#!/bin/sh
#removing all printers on the system
#get list of all currently installed printers
array1=( $(lpstat -a | awk '{print $1}') )
#loop through the array
for x in "${array1[@]}"
do
lpstat -x $x
done
#printer name to add
printer="printername"
modelname="modelname"
lpadmin -p $printer -E -v lpd://your.printer.here/queuename -m $modelname
A couple of notes: you could pick up the names instead of setting them in the script via passed arguments. Also, to get the correct form of adding a printer via afp, I would suggest adding one locally, and seeing what form is needed by lpadmin.
To disable print sharing, all you need to do is to push over a cupsd.conf file, which does not have print sharing enabled. Next, HUP the cups daemon, so that it will re-read it's config file, i.e.
killall -HUP cups