---
title: "removeEntities(_:from:)"
framework: appintents
role: symbol
role_heading: Instance Method
path: "appintents/relevantentities/removeentities(_:from:)"
---

# removeEntities(_:from:)

Removes specific entities from the given context.

## Declaration

```swift
func removeEntities(_ entities: [any AppEntity], from context: AppEntityContext) async throws
```

## Parameters

- `entities`: The entities to remove.
- `context`: The context from which to remove the entities.

## Discussion

Discussion note: An error if the removal fails.

## See Also

### Removing the current donations

- [removeAllEntities()](appintents/relevantentities/removeallentities().md)
- [removeAllEntities(for:)](appintents/relevantentities/removeallentities(for:).md)
- [removeEntities(_:)](appintents/relevantentities/removeentities(_:).md)
