<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: 13.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKHealthStore/disableBackgroundDelivery(for:withCompletion:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HKHealthStore(im)disableBackgroundDeliveryForType:withCompletion:"
  },
  "title" : "disableBackgroundDelivery(for:withCompletion:)"
}
-->

# disableBackgroundDelivery(for:withCompletion:)

Disables background deliveries of update notifications for the specified data type.

```
func disableBackgroundDelivery(for type: HKObjectType, withCompletion completion: @escaping @Sendable (Bool, (any Error)?) -> Void)
```

## Parameters

`type`

The type of data. This object can be any concrete subclass of the [`HKObjectType`](/documentation/HealthKit/HKObjectType) class (any of the classes [`HKCharacteristicType`](/documentation/HealthKit/HKCharacteristicType) , [`HKQuantityType`](/documentation/HealthKit/HKQuantityType), [`HKCategoryType`](/documentation/HealthKit/HKCategoryType), [`HKWorkoutType`](/documentation/HealthKit/HKWorkoutType) or [`HKCorrelationType`](/documentation/HealthKit/HKCorrelationType)).

`completion`

A block that this method calls as soon as the background delivery is disabled. This block is passed the following parameters:

- success: A Boolean value. This parameter contains <doc://com.apple.documentation/documentation/Swift/true> if the background delivery was successfully disabled; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.
- error: An error object. If an error occurred, this object contains information about the error; otherwise, it is set to `nil`.

## Discussion

Call this method to prevent your app from receiving any additional update notifications about the specified data type while in the background. This method operates asynchronously. As soon as the background delivery is disabled, this method calls its completion handler on a background queue.

## See Also

[`HKObserverQuery`](/documentation/HealthKit/HKObserverQuery)

A long-running query that monitors the HealthKit store and updates your app when the HealthKit store saves or deletes a matching sample.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)