Honestly I don't remember either. I thought by his wording that he had tried the share, but I may have just misread it. Is the SetDefaultPrinter() the only printer function that uses the printer name? And AddPrinterConnection() /DelPrinterConnection() uses share name? Either way, one of the below should work I would think.

 Code:
If primapstate("\\server\HP LaserJet P4014 PCL6")
   $RC=delprinterconnection("\\server\HP LaserJet P4014/P4015 PCL6")
Endif
or
 Code:
If primapstate("\\server\HP LaserJet P4014 PCL6")
   $RC=delprinterconnection("\\server\HP LaserJet P4014 PCL6")
Endif