# Extract Archive

> Extracts .zip, .rar, .7z and other archive formats. Non-.zip formats require 7-Zip.

Source: https://docs.capaone.com/capaone/application-manager/powerbricks/extract-archive/  
Product: CapaOne — a separate CapaSystems product; do not apply this page to any other.

Extracts .zip, .rar, .7z and other archive formats. Non-.zip formats require 7-Zip.

## Parameters

#### Archive File Path
*Required*

Full path to the archive file. Supports .zip, .rar, .7z and other formats handled by 7-Zip. Remember to include the [Download Content] PowerBrick when using $PackageRoot.

#### Destination Directory
*Required*

Full path to the directory where the archive should be extracted.

#### Overwrite Existing Files
*Required* — Default: `True`

Enable to overwrite files that already exist in the destination. Disable to keep existing files unchanged.

## Details

- **Category:** File and directory
- **Brick ID:** `Archive-Extract`

## Raw JSON definition

**JSON**

```json
{
  "category": "fileAndDirectory",
  "description": "Extracts .zip, .rar, .7z and other archive formats. Non-.zip formats require 7-Zip.",
  "developerVendor": "CapaSystems A/S",
  "displayName": null,
  "id": "Archive-Extract",
  "name": "Extract Archive",
  "parameters": [
    {
      "allowManualInput": false,
      "defaultValue": "",
      "defaultValueObject": null,
      "description": "Full path to the archive file. Supports .zip, .rar, .7z and other formats handled by 7-Zip. Remember to include the [Download Content] PowerBrick when using $PackageRoot.",
      "id": "ArchiveFilePath",
      "name": "Archive File Path",
      "regExValidation": "",
      "required": true,
      "type": "TextBox",
      "value": null,
      "values": [],
      "valuesObject": null
    },
    {
      "allowManualInput": false,
      "defaultValue": "",
      "defaultValueObject": null,
      "description": "Full path to the directory where the archive should be extracted.",
      "id": "DestinationDirectory",
      "name": "Destination Directory",
      "regExValidation": "",
      "required": true,
      "type": "TextBox",
      "value": null,
      "values": [],
      "valuesObject": null
    },
    {
      "allowManualInput": false,
      "defaultValue": "True",
      "defaultValueObject": null,
      "description": "Enable to overwrite files that already exist in the destination. Disable to keep existing files unchanged.",
      "id": "OverwriteFileIfExist",
      "name": "Overwrite Existing Files",
      "regExValidation": "",
      "required": true,
      "type": "Boolean",
      "value": null,
      "values": [],
      "valuesObject": null
    }
  ],
  "powershell": {
    "base64Encoded": true,
    "function": "ZnVuY3Rpb2..."
  },
  "type": "powerbrick",
  "version": "2026.9.1.1"
}
```
