<!--
{
  "availability" : [
    "iOS: 10.0.0 -",
    "iPadOS: 10.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 11.0.0 -",
    "tvOS: 14.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 3.2.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INInteraction/delete(with:completion:)-tcq9",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(cs)INInteraction(cm)deleteInteractionsWithGroupIdentifier:completion:"
  },
  "title" : "delete(with:completion:)"
}
-->

# delete(with:completion:)

Deletes the interactions with the specified group identifier.

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

## Parameters

`groupIdentifier`

The group identifier string of the interactions that you want to delete. This string corresponds to the value stored in the [`groupIdentifier`](/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.

- error: An error object indicating a problem occurred. On success, this parameter is `nil`. If there was an error, this parameter contains an error object describing what happened.

## 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.

---

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)