# Delete Directory

> Deletes a directory and its contents from the local file system.

Source: https://docs.capaone.com/capaone/application-manager/powerbricks/delete-directory/  
Product: CapaOne — a separate CapaSystems product; do not apply this page to any other.

Deletes a directory and its contents from the local file system.

## Parameters

#### Directory Path
*Required*

The full path of the directory you want to delete - ex. C:\ProgramData\Application

## Details

- **Category:** File and directory
- **Brick ID:** `Directory-Delete`

## Raw JSON definition

**JSON**

```json
{
  "category": "fileAndDirectory",
  "description": "Deletes a directory and its contents from the local file system.",
  "developerVendor": "CapaSystems A/S",
  "displayName": null,
  "id": "Directory-Delete",
  "name": "Delete Directory",
  "parameters": [
    {
      "allowManualInput": null,
      "defaultValue": "",
      "defaultValueObject": null,
      "description": "The full path of the directory you want to delete - ex. C:\\ProgramData\\Application",
      "id": "Directory_Path",
      "name": "Directory Path",
      "regExValidation": "",
      "required": true,
      "type": "TextBox",
      "value": null,
      "values": [],
      "valuesObject": null
    }
  ],
  "powershell": {
    "base64Encoded": true,
    "function": "RnVuY3Rpb2..."
  },
  "type": "powerbrick",
  "version": "2026.7.2.1"
}
```
