<!--
{
  "availability" : [
    "iOS: 26.4.0 -",
    "iPadOS: 26.4.0 -",
    "macCatalyst: -",
    "macOS: 26.4.0 -",
    "tvOS: 26.4.0 -",
    "visionOS: 26.4.0 -",
    "watchOS: 26.4.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/IntentDonationMatchingPredicate/entityIdentifiers(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "App Intents",
      "AppIntents"
    ],
    "preciseIdentifier" : "s:10AppIntents31IntentDonationMatchingPredicateV17entityIdentifiersyACSayAA16EntityIdentifierVGFZ"
  },
  "title" : "entityIdentifiers(_:)"
}
-->

# entityIdentifiers(_:)

Creates a predicate that matches donations that refer to one of the specified entities.

```
static func entityIdentifiers(_ identifiers: [EntityIdentifier]) -> IntentDonationMatchingPredicate
```

## Parameters

`identifiers`

An array of identifiers for your app’s entities. Typically, you find
an entity’s identifier in its `id` property, which you add as part of your implementation
of the <doc://com.apple.documentation/documentation/Swift/Identifiable> protocol.

## Return Value

A predicate that matches a donation if it contains at least one of the specified entities.

## Discussion

When you delete the data for multiple entities from your app’s data store, use this method
to remove donations that refer to one of those [`AppEntity`](/documentation/AppIntents/AppEntity) instances. This predicate matches
all donations in which the app intent contains a parameter with one of the specified
entities. Removing those donations prevents the system from suggesting an app intent
that your app can’t run because it doesn’t have the needed data.

---

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)