---
title: "delete(with:completion:)"
framework: intents
role: symbol
role_heading: Type Method
path: "intents/ininteraction/delete(with:completion:)-tcq9"
---

# delete(with:completion:)

Deletes the interactions with the specified group identifier.

## Declaration

```swift
class func delete(with groupIdentifier: String, completion: (@Sendable ((any Error)?) -> Void)? = nil)
```

```swift
class func delete(with groupIdentifier: String) async throws
```

## Parameters

- `groupIdentifier`: The group identifier string of the interactions that you want to delete. This string corresponds to the value stored in the doc://com.apple.sirikit/documentation/Intents/INInteraction/groupIdentifier property of the interaction objects.
- `completion`: A block to execute with the results. Provide a block if you want to know whether the deletion action succeeded. The block has no return value and takes the following parameter.

## Mentioned in

Deleting Donated Shortcuts

## Discussion

Discussion Call this method to delete a group of donated Siri interactions. Typically, you delete interactions when they are no longer relevant. For example, if you have associated an interaction identifier with a playlist, you can delete all the interactions about the list if the user deletes it. If you provide a block in the completion parameter, the system executes your block asynchronously with the results.

## See Also

### Deleting Interactions from the System

- [deleteAll(completion:)](intents/ininteraction/deleteall(completion:).md)
- [delete(with:completion:)](intents/ininteraction/delete(with:completion:)-2d1gs.md)
