Skip to content

Delete Directory

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

Required

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

  • Category: File and directory
  • Brick ID: Directory-Delete
{
"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"
}