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

# cancel()

Cancels the data transfer.

## Declaration

```swift
func cancel()
```

## Discussion

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

## See Also

### Managing the Transfer Operation

- [isTransferring](watchconnectivity/wcsessionuserinfotransfer/istransferring.md)
