<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.13.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "ExternalAccessory",
  "identifier" : "/documentation/ExternalAccessory/EAAccessoryDelegate/accessoryDidDisconnect(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "External Accessory"
    ],
    "preciseIdentifier" : "c:objc(pl)EAAccessoryDelegate(im)accessoryDidDisconnect:"
  },
  "title" : "accessoryDidDisconnect(_:)"
}
-->

# accessoryDidDisconnect(_:)

Tells the delegate that the specified accessory was disconnected from the device.

```
optional func accessoryDidDisconnect(_ accessory: EAAccessory)
```

## Parameters

`accessory`

The accessory that was disconnected.

## Discussion

The accessory manager calls this method as a convenience whenever it receives an [`EAAccessoryDidDisconnectNotification`](/documentation/ExternalAccessory/EAAccessoryDidDisconnectNotification) notification. You can use this method to remove any references to the specified accessory object and to stop any services currently using the accessory.

Because this is a convenience method, your delegate does not also need to register as an observer of the [`EAAccessoryDidDisconnectNotification`](/documentation/ExternalAccessory/EAAccessoryDidDisconnectNotification) notification. However, if you want your delegate to be notified of newly connected accessories, you should configure it as an observer of the [`EAAccessoryDidConnectNotification`](/documentation/ExternalAccessory/EAAccessoryDidConnectNotification) notification.

---

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)