---
title: "Extract-ZipFile"
---
Extracts a zip file on a server.
Extract-ZipFile(
	Name: <text>,
	[Directory: <text>],
	[ClearTarget: <true/false>],
	[Overwrite: <true/false>]
);
This operation may be prefixed with Files::, although this is a built-in namespace and isn't really necessary.
| Name | Format | Script Usage | Usage Notes | 
|---|---|---|---|
| ☆ File name (default) | text | Name | This argument is required. | 
| Target directory | text | Directory | |
| Clear target directory | true/false | ClearTarget | |
| Overwrite | true/false | Overwrite | 
# extracts archive.zip in ArchiveContents after deleting the directory contents
Extract-ZipFile(
    Name: archive.zip,
    Directory: E:\Services\ArchiveContents,
    ClearTarget: true
);