> For the complete documentation index, see [llms.txt](https://docs.codemash.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.codemash.io/sdks-and-cli/membership/passkeys-recovery/revoke-passkey.md).

# Revoke Passkey

These endpoints power passwordless sign-in (passkeys / WebAuthn) and account recovery (magic links, recovery codes, email verification) for your app's end users. This method removes the passkey. This action cannot be undone, so confirm the target first.

{% hint style="warning" %}
This action is destructive or irreversible. Make sure you target the right item and confirm before running it.
{% endhint %}

This method is on the runtime **API** surface (`norbix.api.membership`) — call it from your app.

{% hint style="info" %}
These examples assume the SDK is installed and your credentials are set as environment variables — each client reads them automatically, so the constructors below take no arguments. See [Install a Norbix SDK](/sdks-and-cli/install.md).
{% endhint %}

{% tabs %}
{% tab title="JavaScript / TypeScript" %}

```ts
import { Norbix } from '@norbix.ai/ts';
const norbix = new Norbix();

const result = await norbix.api.membership.revokePasskey({
  credentialId: 'cred_4kX9mQvR2tYw7ZbC1dFgHj',
});
```

{% endtab %}

{% tab title=".NET" %}

```csharp
using Norbix.Sdk;
using Norbix.Sdk.Types.Api;

using var client = new NorbixClient();

var result = await client.Membership.RevokePasskeyAsync(new RevokePasskeyRequest
{
    CredentialId = "cred_4kX9mQvR2tYw7ZbC1dFgHj",
});
```

{% endtab %}

{% tab title="Python" %}

```python
from norbix_python import NorbixApi

norbix = NorbixApi()

result = norbix.membership.revoke_passkey(
    credentialId="cred_4kX9mQvR2tYw7ZbC1dFgHj",
)
```

{% endtab %}

{% tab title="Go" %}

```go
c, _ := norbix.New(norbix.Options{})
ctx := context.Background()

var result map[string]any
err := c.API.Membership.RevokePasskey(ctx, "cred_4kX9mQvR2tYw7ZbC1dFgHj", nil, &result)
```

{% endtab %}

{% tab title="Dart / Flutter" %}

```dart
import 'package:norbix/norbix_api.dart';

final api = NorbixApi();

final result = await api.membership.revokePasskey(credentialId: 'cred_4kX9mQvR2tYw7ZbC1dFgHj');
```

{% endtab %}

{% tab title="Swift" %}

```swift
import NorbixSwift

let client = Norbix()

let result = try await client.api.membership.revokePasskey([
    "credentialId": "cred_4kX9mQvR2tYw7ZbC1dFgHj",
])
```

{% endtab %}

{% tab title="Kotlin" %}

```kotlin
import dev.norbix.sdk.api.NorbixApi

val api = NorbixApi()

val result = api.membership.revokePasskey(mapOf(
    "credentialId" to "cred_4kX9mQvR2tYw7ZbC1dFgHj",
))
```

{% endtab %}

{% tab title="CLI" %}

```sh
norbix api membership passkey revoke --credentialId cred_4kX9mQvR2tYw7ZbC1dFgHj
```

{% endtab %}
{% endtabs %}

## In the dashboard

Manage this visually in Norbix Cloud — see [Membership → Passkeys & Recovery](/norbix-cloud/membership.md).

## API reference

Full request and response for this endpoint: [Revoke Passkey](/api-reference/membership/passkeys-recovery/revoke-passkey.md).
