# File_DelEmptyFolder

> The function deletes an empty folder.

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

### Description

The function deletes an empty folder

### Syntax

File_DelEmptyFolder(sFolderName) As Boolean

### Parameters

#### sFolderName (String)

The name for the folder

### Example

**VBScript**

```vb
If bStatus Then bStatus = File_DelEmptyFolder("C:\CapaInstaller")
```

[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/)
