> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Method CreateNewPaczFileAsync

Namespace: [Phoenix.PaczAPI](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.PaczAPI)\
Assembly: Phoenix.PaczAPI.dll

## CreateNewPaczFileAsync(string, bool)

Creates a new IPaczWriter that is backed by a temporary folder which
can be used to start creating a new Pacz. The source of the returned IPaczWriter
will be null.

```csharp theme={null}
Task<IPaczWriter> CreateNewPaczFileAsync(string extractionFolder = null, bool deleteOnDispose = true)

```

### Parameters

`extractionFolder` [string](https://learn.microsoft.com/dotnet/api/system.string)

If non-null will be used as the extraction folder instead of a temporary folder.

`deleteOnDispose` [bool](https://learn.microsoft.com/dotnet/api/system.boolean)

If true, the extraction folder will be deleted when the returned object is diposed.

### Returns

[Task](https://learn.microsoft.com/dotnet/api/system.threading.tasks.task-1)\<[IPaczWriter](https://developer.synopsys.com/docs/modelcenter/component-plug-in-sdk/2026-r1/apidocs/Phoenix.PaczAPI.IPaczWriter)>

A task that when complete contains a new instance of IPaczWriter
