removeAllActivityItems()
Deletes all activity items associated with the current activity.
Declaration
func removeAllActivityItems()Discussion
Call the 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:
activity.removeAllActivityItems()
CLSDataStore.shared.save { error in
// Handle errors.
}