<!--
{
  "availability" : [
    "macCatalyst: -",
    "macOS: 10.7.0 - 10.9.0"
  ],
  "documentType" : "symbol",
  "framework" : "CoreWLAN",
  "identifier" : "/documentation/CoreWLAN/CWKeychainDeleteEAPUsernameAndPassword",
  "metadataVersion" : "0.1.0",
  "role" : "Function",
  "symbol" : {
    "kind" : "Function",
    "modules" : [
      "Core WLAN"
    ],
    "preciseIdentifier" : "c:@F@CWKeychainDeleteEAPUsernameAndPassword"
  },
  "title" : "CWKeychainDeleteEAPUsernameAndPassword"
}
-->

# CWKeychainDeleteEAPUsernameAndPassword

Deletes the keychain item containing the 802.1X username and password for the specified SSID.

```
OSStatus CWKeychainDeleteEAPUsernameAndPassword(CFDataRef ssidData);
```

## Return Value

An OSStatus error code which will indicate whether or not a failure occurred during execution. *errSecSuccess* indicates no error occurred.

---

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)