<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreBluetooth",
  "identifier" : "/documentation/CoreBluetooth/CBCentralManagerDelegate/centralManager(_:didDisconnectPeripheral:error:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Bluetooth"
    ],
    "preciseIdentifier" : "c:objc(pl)CBCentralManagerDelegate(im)centralManager:didDisconnectPeripheral:error:"
  },
  "title" : "centralManager(_:didDisconnectPeripheral:error:)"
}
-->

# centralManager(_:didDisconnectPeripheral:error:)

Tells the delegate that the central manager disconnected from a peripheral.

```
optional func centralManager(_ central: CBCentralManager, didDisconnectPeripheral peripheral: CBPeripheral, error: (any Error)?)
```

## Parameters

`central`

The central manager that provides this information.

`peripheral`

The now-disconnected peripheral.

`error`

The cause of the failure, or `nil` if no error occurred.

## Discussion

The manager invokes this method when disconnecting a peripheral previously connected with the [`connect(_:options:)`](/documentation/CoreBluetooth/CBCentralManager/connect(_:options:)) method. The error parameter contains the reason for the disconnection, unless the disconnect resulted from a call to [`cancelPeripheralConnection(_:)`](/documentation/CoreBluetooth/CBCentralManager/cancelPeripheralConnection(_:)). After this method executes, the peripheral device’s [`CBPeripheralDelegate`](/documentation/CoreBluetooth/CBPeripheralDelegate) object receives no further method calls.

All services, characteristics, and characteristic descriptors a peripheral become invalidated after it disconnects.

---

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)