# Net_RemoveNetworkDrive

> Disconnects an already connected network drive.

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

### Description

Disconnects an already connected network drive

### Syntax

Net_RemoveNetworkDrive(sDrive, bForce) As Boolean

### Parameters

#### sDrive (String)

Drive letter to disconnect

#### bForce (String)

Force the disconnection. Open file pipes will be terminated

### Example

**VBScript**

```vb
If bStatus Then bStatus = Net_RemoveNetworkDrive("Q:", True)
```

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

### Related functions

[Net_MapNetworkDrive](/capainstaller/vb-scripting-library/network-functions/net-mapnetworkdrive/) [Net_EnumNetworkDrives](/capainstaller/vb-scripting-library/network-functions/net-enumnetworkdrives/) [Net_EnumNetworkDrivePaths](/capainstaller/vb-scripting-library/network-functions/net-enumnetworkdrivepaths/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
