# Net_DeletePrinter

> Removes a network printer from the local computer.

Source: https://docs.capaone.com/capainstaller/vb-scripting-library/network-functions/net-deleteprinter/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

### Description

Removes a network printer from the local computer

### Syntax

Net_DeletePrinter(sPrinterShare) As Boolean

### Parameters

#### sPrinterShare (String)

UNC path to the network printer that must be removed

### Example

**VBScript**

```vb
If bStatus Then bStatus = Net_DeletePrinter("\\CAPAINSTALLER\PRINTERSHARE")
```

[Scripting Guidelines](/capainstaller/vb-scripting-library/scripting-guidelines/)

### Related functions

[Net_AddPrinter](/capainstaller/vb-scripting-library/network-functions/net-addprinter/) [Net_SetDefaultPrinter](/capainstaller/vb-scripting-library/network-functions/net-setdefaultprinter/) [Net_EnumPrinters](/capainstaller/vb-scripting-library/network-functions/net-enumprinters/) [Net_EnumPrinterPaths](/capainstaller/vb-scripting-library/network-functions/net-enumprinterpaths/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
