---
title: "confirm(intent:completion:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/indeletetasksintenthandling/confirm(intent:completion:)"
---

# confirm(intent:completion:)

Validates whether you can delete the task.

## Declaration

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

```swift
optional func confirm(intent: INDeleteTasksIntent) async -> INDeleteTasksIntentResponse
```

## Parameters

- `intent`: The intent object that contains details about the user’s request. Your handler object has already resolved the information in this object.
- `completion`: The handler block to execute with your response. You must execute this handler while implementing this method. The handler has no return value and takes the following parameter:

## Discussion

Discussion This method validates that you can delete the task, but doesn’t delete it yet. If deleting tasks involves contacting a remote server, validate that your server is available and ready to handle requests. In your implementation, execute the provided completion block with a response object that indicates your app’s readiness to delete the task.
