---
title: "disableAllBackgroundDelivery(completion:)"
framework: healthkit
role: symbol
role_heading: Instance Method
path: "healthkit/hkhealthstore/disableallbackgrounddelivery(completion:)"
---

# disableAllBackgroundDelivery(completion:)

Disables all background deliveries of update notifications.

## Declaration

```swift
func disableAllBackgroundDelivery(completion: @escaping @Sendable (Bool, (any Error)?) -> Void)
```

```swift
func disableAllBackgroundDelivery() async throws
```

## Parameters

- `completion`: A block that this method calls as soon as the background deliveries are disabled. This block is passed the following parameters:

## Discussion

Discussion Call this method to prevent your app from receiving any additional update notifications while in the background. This method operates asynchronously. As soon as the background deliveries are disabled, this method calls its completion handler on a background queue.

## See Also

### Related Documentation

- [HKObserverQuery](healthkit/hkobserverquery.md)

### Managing background delivery

- [enableBackgroundDelivery(for:frequency:withCompletion:)](healthkit/hkhealthstore/enablebackgrounddelivery(for:frequency:withcompletion:).md)
- [com.apple.developer.healthkit.background-delivery](bundleresources/entitlements/com.apple.developer.healthkit.background-delivery.md)
- [HKUpdateFrequency](healthkit/hkupdatefrequency.md)
- [disableBackgroundDelivery(for:withCompletion:)](healthkit/hkhealthstore/disablebackgrounddelivery(for:withcompletion:).md)
