---
title: cancel()
framework: createml
role: symbol
role_heading: Instance Method
path: createml/mljob/cancel()
---

# cancel()

Stops the training session’s execution.

## Declaration

```swift
final func cancel()
```

## See Also

### Managing a job

- [isCanceled](createml/mljob/iscanceled.md)
