---
title: cancel()
framework: mapkit
role: symbol
role_heading: Instance Method
path: mapkit/mkdirections/cancel()
---

# cancel()

Cancels a pending request.

## Declaration

```swift
func cancel()
```

## Discussion

Discussion After canceling a request, you can call the calculate(completionHandler:) method again (if you want) to restart the request process.

## See Also

### Managing the request

- [isCalculating](mapkit/mkdirections/iscalculating.md)
