---
title: cancel()
framework: watchconnectivity
role: symbol
role_heading: Instance Method
path: watchconnectivity/wcsessionfiletransfer/cancel()
---

# cancel()

Cancels the file transfer.

## Declaration

```swift
func cancel()
```

## Discussion

Discussion Use this method to cancel a file transfer before it completes. If the file has already been transferred, calling this method has no effect.

## See Also

### Managing the File Transfer

- [isTransferring](watchconnectivity/wcsessionfiletransfer/istransferring.md)
- [progress](watchconnectivity/wcsessionfiletransfer/progress.md)
