Skip to content

Delete Directory From All User Profile Directories

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.

Required

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

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