> For the complete documentation index, see [llms.txt](https://docs.vida.id/identity-stack/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.vida.id/identity-stack/authentication/authentication-factors/cryptographic-token-pki/integration-methods/sdk/ios-development-kit/unregister-wipe-device-registration.md).

# Unregister/Wipe Device Registration

To remove credentials associated with the current device, the `wipeDevice(password: String?, completion: @escaping VIDAResultBlock)` method can be called. If user presence is required for message signing, wiping the device will fail if a nil password is provided.

In case the password is forgotten, the `wipeDevice(completion: @escaping VIDAResultBlock)` method can be invoked. However, it's important to note that wiping the device in this scenario may not delete all data stored in the secured enclave.

By utilising the device wiping functionality, developers can ensure the secure removal of credentials from the current device when needed.
