Skip to content

Delete File From All User Profile Directories

Delete a file from all user profile directories

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

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