<!--
{
  "availability" : [
    "iOS: 12.0.0 -",
    "iPadOS: 12.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.15.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 5.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSUserActivity/deleteAllSavedUserActivities(completionHandler:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSUserActivity(cm)deleteAllSavedUserActivitiesWithCompletionHandler:"
  },
  "title" : "deleteAllSavedUserActivities(completionHandler:)"
}
-->

# deleteAllSavedUserActivities(completionHandler:)

Deletes all user activities created by your app.

```
class func deleteAllSavedUserActivities(completionHandler handler: @escaping @Sendable () -> Void)
```

## Parameters

`handler`

The block that the system invokes after deleting the user activities. Wait for the system to call this block to ensure that the system deletes the activities (or marks them for deletion).

## Discussion

Deletes all user activities stored by Core Spotlight or donated as Siri shortcuts.

---

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)