DelPrinterConnection( )
Action: Deletes a connection to a printer that was established by using AddPrinterConnection.
Syntax: DELPRINTERCONNECTION ("printer name")
Parameters: Printer name
A string that specifies the name of the printer connection to delete.
Remarks: This function is only available on Windows NT/2000.
The DELPRINTERCONNECTION function does not delete any printer driver files that were copied from the server on which the printer resides when the printer connection was established.
Returns: 0 Printer connection deleted
Error code Function failed
See Also: AddPrinterConnection( )
Example: If DelPrinterConnection ("hplaser4") = 0
? "Deleted printer connection...."
Endif
Does not appear to support Wild Card * so would have to loop through each one basically like Lonkero did in that UDF post you pointed to.