# WebAuthn - Delete user credential via api

**URL:** <https://forum.keycloak.org/t/webauthn-delete-user-credential-via-api/27869>\
**Category:** Getting advice\
**Tags:** admin-console, authentication\
**Created:** [September 16, 2024, 9:09am UTC](https://forum.keycloak.org/t/webauthn-delete-user-credential-via-api/27869 "2024-09-16T09:09:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![CHC331](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/chc331/32/11255_2.png) [@CHC331](https://forum.keycloak.org/u/CHC331)\
**Post date:** [September 16, 2024, 9:09am UTC](https://forum.keycloak.org/t/webauthn-delete-user-credential-via-api/27869/1 "2024-09-16T09:09:39Z")

</div>

Hi,

React js account-console theme with Keycloak 24.0.5.  
How to delete user credential (passkey) via api?  
I tried the original PassKey signup and remove method in /account-security/signing-in  
it called many request when click Delete button like:

```auto
http://localhost:8080/realms/quickstart/protocol/openid-connect/auth
client_id: account-console
redirect_uri: http://localhost:8080/realms/quickstart/account/#/account-security/signing-in
state: ##random id##
response_mode: query
response_type: code
scope: openid
nonce: ##random id##
kc_action: delete_credential:##target credential id##
code_challenge: ##random id##
code_challenge_method: S256

```

and when clicked confirm button in UI will call:

```auto
http://localhost:8080/realms/quickstart/login-actions/required-action
session_code: ##random id##
execution: delete_credential
client_id: account-console
tab_id: ##random id##

```

How to get those required ##random id## params?
