<!--
{
  "availability" : [
    "iOS: 27.0.0 -",
    "iPadOS: 27.0.0 -",
    "macCatalyst: -",
    "macOS: 27.0.0 -",
    "tvOS: 27.0.0 -",
    "visionOS: 27.0.0 -",
    "watchOS: 27.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AppIntents",
  "identifier" : "/documentation/AppIntents/RelevantEntities/removeAllEntities(for:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "App Intents"
    ],
    "preciseIdentifier" : "s:10AppIntents16RelevantEntitiesV09removeAllD03foryAA0A13EntityContextV_tYaKF"
  },
  "title" : "removeAllEntities(for:)"
}
-->

# removeAllEntities(for:)

Removes all donated entities for the given context.

```
func removeAllEntities(for context: AppEntityContext) async throws
```

## Parameters

`context`

The context whose donated entities should be removed.

## Discussion> Throws: An error if the removal fails.

---

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)