DeletePrinterConnection

[DllImport("winspool.drv", SetLastError = true)]
public static extern bool DeletePrinterConnection(
   string pName
);

Microsoft documentation: Link

Last updated