<!--
{
  "availability" : [
    "macOS: 10.0.0 - 10.6.0"
  ],
  "documentType" : "symbol",
  "framework" : "IOBluetooth",
  "identifier" : "/documentation/IOBluetooth/OBEXSessionDelete",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "IOBluetooth"
    ],
    "preciseIdentifier" : "c:@F@OBEXSessionDelete"
  },
  "title" : "OBEXSessionDelete"
}
-->

# OBEXSessionDelete

Destroy an OBEX session. If connections are open, they will (eventually) be terminated for you.

```
OBEXError OBEXSessionDelete(OBEXSessionRef inSessionRef);
```

## Parameters

`inSessionRef`

A valid service reference.

## Return Value

An error code value. 0 if successful.

## Discussion

*** DEPRECATED IN BLUETOOTH 2.2 (OS X v10.6) *** You should transition your code to Objective-C equivalents. *** This API may be removed any time in the future.

---

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)