Skip to content

Delete File

Delete a file

Required

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

Required — Default: False

With this option you could search for the specified file name in subdirectories and also delete them

  • Category: File and directory
  • Brick ID: File-Delete
{
"category": "fileAndDirectory",
"description": "Delete a file",
"developerVendor": "CapaSystems A/S",
"displayName": null,
"id": "File-Delete",
"name": "Delete File",
"parameters": [
{
"defaultValue": "",
"defaultValueObject": null,
"description": "The full path of the file you want to delete - ex. C:\\ProgramData\\Application\\File.ext",
"id": "File_Path",
"name": "File Path",
"regExValidation": "",
"required": true,
"type": "TextBox",
"value": null,
"values": [],
"valuesObject": null
},
{
"defaultValue": "False",
"defaultValueObject": null,
"description": "With this option you could search for the specified file name in subdirectories and also delete them",
"id": "SearchSubFolders",
"name": "Search in subfolders",
"regExValidation": "",
"required": true,
"type": "Boolean",
"value": null,
"values": [],
"valuesObject": null
}
],
"powershell": {
"base64Encoded": true,
"function": "RnVuY3Rpb2..."
},
"type": "powerbrick",
"version": "2026.7.2.1"
}