<!--
{
  "availability" : [
    "iOS: 14.5.0 -",
    "iPadOS: 14.5.0 -",
    "macCatalyst: 14.5.0 -",
    "macOS: 11.3.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ClassKit",
  "identifier" : "/documentation/ClassKit/CLSActivity/removeAllActivityItems()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "ClassKit"
    ],
    "preciseIdentifier" : "c:objc(cs)CLSActivity(im)removeAllActivityItems"
  },
  "title" : "removeAllActivityItems()"
}
-->

# removeAllActivityItems()

Deletes all activity items associated with the current activity.

```
func removeAllActivityItems()
```

## Discussion

Call the [`save(completion:)`](/documentation/ClassKit/CLSDataStore/save(completion:)) method on the data store after removing activity items, just as you would when adding items, to propagate the changes to the network:

```swift
activity.removeAllActivityItems()

CLSDataStore.shared.save { error in
    // Handle errors.
}
```

---

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)