Delete Directory
Deletes a directory and its contents from the local file system.
Parameters
Section titled “Parameters”Directory Path
Section titled “Directory Path”Required
The full path of the directory you want to delete - ex. C:\ProgramData\Application
Details
Section titled “Details”- Category: File and directory
- Brick ID:
Directory-Delete
Raw JSON definition
Section titled “Raw JSON definition”{ "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": [ { "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"}