# Delete Directory From All User Profile Directories

> Deletes a specified directory from all user profile directories on the local machine.

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

Deletes a specified directory from all user profile directories on the local machine. This can be useful for cleaning up application data or temporary files that are stored in user profiles.

## Parameters

#### Relative Directory Path
*Required*

The relative path to the directory that should be deleted from all user profiles. Ex. AppData\Local\MyApp

## Details

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

## Raw JSON definition

**JSON**

```json
{
  "category": "fileAndDirectory",
  "description": "Deletes a specified directory from all user profile directories on the local machine. This can be useful for cleaning up application data or temporary files that are stored in user profiles.",
  "developerVendor": "CapaSystems A/S",
  "displayName": null,
  "id": "Directory-DeleteFromAllUsersProfiles",
  "name": "Delete Directory From All User Profile Directories",
  "parameters": [
    {
      "allowManualInput": null,
      "defaultValue": "",
      "defaultValueObject": null,
      "description": "The relative path to the directory that should be deleted from all user profiles. Ex. AppData\\Local\\MyApp",
      "id": "RelativeDirectoryPath",
      "name": "Relative Directory Path",
      "regExValidation": "",
      "required": true,
      "type": "TextBox",
      "value": null,
      "values": [],
      "valuesObject": null
    }
  ],
  "powershell": {
    "base64Encoded": true,
    "function": "ZnVuY3Rpb2..."
  },
  "type": "powerbrick",
  "version": "2026.7.2.1"
}
```
