# File_DeleteShare

> Removes a share on a local computer.

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

#### Description

Removes a share on a local computer

### Syntax

File_DeleteShare(sShareName) As Boolean

#### Parameters

#### sShareName (String)

Name for the shared resource

### Example

**VBScript**

```vb
If bStatus Then bStatus = File_DeleteShare("C:\Shares") 
```

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

### Related functions

[File_CreateShare](/capainstaller/vb-scripting-library/file-functions/file-createshare/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
