<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: 27.0.0 -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaIntelligence",
  "identifier" : "/documentation/MediaIntelligence/FaceGroupAnalyzer/purge(workingDirectory:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Media Intelligence"
    ],
    "preciseIdentifier" : "s:17MediaIntelligence17FaceGroupAnalyzerC5purge16workingDirectoryy10Foundation3URLV_tYaKFZ"
  },
  "title" : "purge(workingDirectory:)"
}
-->

# purge(workingDirectory:)

Removes all analyzer data from the specified directory.

```
nonisolated(nonsending) static func purge(workingDirectory: URL) async throws
```

## Parameters

`workingDirectory`

The directory to purge.

## Discussion

Call this method to permanently delete all face data, cluster
assignments, and metadata from `workingDirectory`. This operation
is irreversible.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)