---
title: "cancel(_:)"
framework: storekit
role: symbol
role_heading: Instance Method
path: "storekit/skpaymentqueue/cancel(_:)"
---

# cancel(_:)

Removes a set of downloads from the download list.

## Declaration

```swift
func cancel(_ downloads: [SKDownload])
```

## Parameters

- `downloads`: An array of doc://com.apple.storekit/documentation/StoreKit/SKDownload objects to cancel.

## Mentioned in

Unlocking purchased content

## See Also

### Downloading Content

- [start(_:)](storekit/skpaymentqueue/start(_:).md)
- [pause(_:)](storekit/skpaymentqueue/pause(_:).md)
- [resume(_:)](storekit/skpaymentqueue/resume(_:).md)
