---
title: eraseFile
framework: audiotoolbox
role: symbol
role_heading: Type Property
path: audiotoolbox/audiofileflags/erasefile
---

# eraseFile

## Declaration

```swift
static var eraseFile: AudioFileFlags { get }
```

## Discussion

Discussion If set, the AudioFileCreateWithURL(_:_:_:_:_:) function erases the contents of an existing file. If not set, then the function fails if the file already exists.

## See Also

### Flags

- [dontPageAlignAudioData](audiotoolbox/audiofileflags/dontpagealignaudiodata.md)
