---
title: "resolveTasks(for:with:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/indeletetasksintenthandling/resolvetasks(for:with:)"
---

# resolveTasks(for:with:)

Resolves the tasks to delete.

## Declaration

```swift
optional func resolveTasks(for intent: INDeleteTasksIntent, with completion: @escaping @Sendable ([INDeleteTasksTaskResolutionResult]) -> Void)
```

```swift
optional func resolveTasks(for intent: INDeleteTasksIntent) async -> [INDeleteTasksTaskResolutionResult]
```

## Parameters

- `intent`: The intent object that contains details about the user’s request. Use this object to get the initial information, if any, provided by the user.
- `completion`: The handler block to execute with the resolution. You must execute this block while implementing this method. This handler has no return value and takes the following parameter:

## Discussion

Discussion This method resolves the tasks to delete. Use the intent object to obtain information about the task to delete. Use the information in the INTask object to look up the corresponding task information in your app’s data structures.

## See Also

### Resolving Details of the Intent

- [resolveTaskList(for:with:)](intents/indeletetasksintenthandling/resolvetasklist(for:with:).md)
