<!--
{
  "availability" : [
    "iOS: 13.0.0 - 15.0.0",
    "iPadOS: 13.0.0 - 15.0.0",
    "macCatalyst: 13.1.0 - 15.0.0",
    "visionOS: 1.0.0 - 1.0.0",
    "watchOS: 6.0.0 - 8.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "SiriKit",
  "identifier" : "/documentation/Intents/INDeleteTasksIntentHandling/handle(intent:completion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Intents"
    ],
    "preciseIdentifier" : "c:objc(pl)INDeleteTasksIntentHandling(im)handleDeleteTasks:completion:"
  },
  "title" : "handle(intent:completion:)"
}
-->

# handle(intent:completion:)

Handles deleting a task.

```
func handle(intent: INDeleteTasksIntent, completion: @escaping @Sendable (INDeleteTasksIntentResponse) -> Void)
```

## Parameters

`intent`

The intent object that contains details about the user’s request. Your handler object has already resolved and confirmed this object’s information.

`completion`

The handler block to execute with your response. You must execute this handler while implementing this method. This handler has no return value and takes the following parameter:

- response: The [`INDeleteTasksIntentResponse`](/documentation/Intents/INDeleteTasksIntentResponse) object that contains the status of the request. This parameter must not be `nil`.

## Discussion

Use this method to transfer control of deleting the task to your app. Delete the task based on the information in the intent parameter, create a response object with the relevant details, and call the provided completion handler.

---

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)