# Delete File From All User Profile Directories

> Delete a file from all user profile directories.

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

Delete a file from all user profile directories

## Parameters

#### Relative File Path
*Required*

The relative path to the file that should be deleted from all user profiles. Ex. Desktop\OldShortcut.lnk or AppData\Roaming\MyApp\settings.xml

## Details

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

## Raw JSON definition

**JSON**

```json
{
  "category": "fileAndDirectory",
  "description": "Delete a file from all user profile directories",
  "developerVendor": "CapaSystems A/S",
  "displayName": null,
  "id": "File-DeleteFromAllUsersProfiles",
  "name": "Delete File From All User Profile Directories",
  "parameters": [
    {
      "allowManualInput": null,
      "defaultValue": "",
      "defaultValueObject": null,
      "description": "The relative path to the file that should be deleted from all user profiles. Ex. Desktop\\OldShortcut.lnk or AppData\\Roaming\\MyApp\\settings.xml",
      "id": "RelativeFilePath",
      "name": "Relative File Path",
      "regExValidation": "",
      "required": true,
      "type": "TextBox",
      "value": null,
      "values": [],
      "valuesObject": null
    }
  ],
  "powershell": {
    "base64Encoded": true,
    "function": "ZnVuY3Rpb2..."
  },
  "type": "powerbrick",
  "version": "2026.7.2.1"
}
```
