<!--
{
  "documentType" : "article",
  "framework" : "SiriKit",
  "identifier" : "/documentation/SiriKit/deleting-donated-shortcuts",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "Deleting Donated Shortcuts"
}
-->

# Deleting Donated Shortcuts

Remove your donations from Siri.

## Discussion

If your app donated a shortcut containing information that the user has since deleted, your app should delete the donation. For example, let’s say that a user sends a message to a contact using your messaging app. Your app donates the *send message* shortcut that includes information about the contact. Later, the user deletes that contact from the app. The app should delete the donations it made that included the contact information.

When a user deletes data from an app, they expect the data to be gone for good. This means removing the data from the app as well as from the system—if the system has knowledge of that data. It’s important for your app to honor this unspoken agreement with the user: to maintain privacy and trust at all times.

There are other times your app should delete donations; for instance, when your app no longer supports the action. In general, whenever a donation is no longer appropriate for the user, your app should delete the donation.

### Delete Interaction Donations

To delete donations made with interaction objects, use one of the `delete` class methods on [`INInteraction`](/documentation/Intents/INInteraction) (see Deleting Interactions from the System). To delete specific donations, use [`delete(with:completion:)`](/documentation/Intents/INInteraction/delete(with:completion:)-2d1gs), passing in the list of [`identifier`](/documentation/Intents/INInteraction/identifier) strings for each interaction to delete. Or use [`delete(with:completion:)`](/documentation/Intents/INInteraction/delete(with:completion:)-tcq9), passing in the [`groupIdentifier`](/documentation/Intents/INInteraction/groupIdentifier) string used to group of two or more interactions.

If you need to delete all interactions that your app donated—for example, when the user signs out of your app—use [`deleteAll(completion:)`](/documentation/Intents/INInteraction/deleteAll(completion:)).

### Delete User Activity Donations

The method you use to delete a donation made with <doc://com.apple.documentation/documentation/Foundation/NSUserActivity> depends on how you set up the user activity.

#### Persisted Activities

If user activity’s <doc://com.apple.documentation/documentation/Foundation/NSUserActivity/isEligibleForPrediction> property is set to <doc://com.apple.documentation/documentation/Swift/true> and the <doc://com.apple.documentation/documentation/Foundation/NSUserActivity/persistentIdentifier> property is set to a unique string identifying the activity, then:

- Use <doc://com.apple.documentation/documentation/Foundation/NSUserActivity/deleteSavedUserActivities(withPersistentIdentifiers:completionHandler:)>, passing in the list of persistent identifiers, to delete individual activities. This method also deletes user activities stored by Core Spotlight that have a matching persistent identifier.
- Use <doc://com.apple.documentation/documentation/Foundation/NSUserActivity/deleteAllSavedUserActivities(completionHandler:)> to delete all activities saved by your app; for example, after the user signs out of your app. This method also deletes all user activities created by your app and stored by Core Spotlight.

#### Spotlight Indexed Activities

If the user activity is indexed in Spotlight and the <doc://com.apple.documentation/documentation/CoreSpotlight/CSSearchableItemAttributeSet/relatedUniqueIdentifier> property is set to a unique string identifying the activity, then:

- Use <doc://com.apple.documentation/documentation/CoreSpotlight/CSSearchableIndex/deleteSearchableItems(withIdentifiers:completionHandler:)> to delete specific Spotlight items.
- Use <doc://com.apple.documentation/documentation/CoreSpotlight/CSSearchableIndex/deleteSearchableItems(withDomainIdentifiers:completionHandler:)> to delete Spotlight items grouped by domain identifiers.
- Use <doc://com.apple.documentation/documentation/CoreSpotlight/CSSearchableIndex/deleteAllSearchableItems(completionHandler:)> to delete all searchable items that your app contributed to Spotlight from the index.

When you delete a Spotlight item, the system deletes the related user activity and its donations.

For more information about Spotlight indexing, see <doc://com.apple.documentation/documentation/CoreSpotlight>.

---

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)