<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/IntentDonationManager/deleteDonations(matching:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents21IntentDonationManagerV15deleteDonations8matchingSayAA0cD10IdentifierVGAA0cD17MatchingPredicateV_tYaKF"
  },
  "title" : "deleteDonations(matching:)"
}
-->

# deleteDonations(matching:)

Deletes the donations that match the criteria in the specified predicate.

```
@discardableResult func deleteDonations(matching predicate: IntentDonationMatchingPredicate) async throws -> [IntentDonationIdentifier]
```

## Parameters

`predicate`

A predicate that identifies the donations to delete.

## Return Value

An array with the donation identifiers for each deleted donation.

## Discussion

Delete donations as part of your app’s overall cleanup and maintenance tasks. You might
delete a donation when the data required to perform the action isn’t available. For
example, if someone deletes app-specific data with an associated entity, delete
all of the donations that contain the entity in a required parameter. You might
also delete a donation if someone undoes the associated action, or if the actions
are no longer relevant.

---

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)