> For the complete documentation index, see [llms.txt](https://legacy-docs.usesmileid.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://legacy-docs.usesmileid.com/further-reading/faqs/how-to-re-enroll-or-delete-a-user.md).

# How to re-enroll or delete a user?

This page explains how to manage users in our system, covering:

1. Re-enrollment
2. Permanent deletion

The unique `user_id` sent with each job is central to these operations.

## Overview

1. Re-enroll: Allows an existing user to submit a new enrollment job i.e. [Biometric KYC](/products/for-individuals-kyc/biometric-kyc.md), [Document Verification](/products/for-individuals-kyc/document-verification/document-verification.md), [Enhanced Document Verification](/products/for-individuals-kyc/document-verification/enhanced-document-verification.md) , [SmartSelfie™ Registration](/products/for-individuals-kyc/biometric-authentication.md#register-a-user).
2. Delete: Permanently removes a `user_id` and all enrolment information (this cannot be undone).

{% hint style="info" %}
Use the same endpoint with different flags to manage each type of action.
{% endhint %}

### Endpoint

POST `{{base_url}}/v2/block-user`

* Sandbox base url: <https://testapi.smileidentity.com>
* Prod base url: <https://api.smileidentity.com>

### Request Header

<table><thead><tr><th>Key</th><th>Value</th><th width="115.53125">Required</th><th>Description</th></tr></thead><tbody><tr><td>smileid-partner-id</td><td>{{your_partner_id eg. 0001}}</td><td>Yes</td><td>This is your partner id which can be found on the side navigation panel of the <a href="https://portal.usesmileid.com/partner/dashboard">Smile ID partner portal</a></td></tr><tr><td>smileid-request-signature</td><td>{{your_security_signature eg. aw234..}}</td><td>Yes</td><td>Your calculated access signature</td></tr><tr><td>smileid-timestamp</td><td>{{timestamp eg. 2021-08-12T17:57:00.614879}}</td><td>Yes</td><td>The timestamp that was used to calculate your signature (in ISO date/time format).</td></tr></tbody></table>

{% hint style="info" %}
To prevent issues with authorisation errors, the timestamp must be in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) with a micro-second format of 3-digits. eg. `.809Z` for this timestamp: `2025-05-23T11:40:07.809Z`.
{% endhint %}

### Request Body

#### Re-enroll a User ID

To re-enroll a user (i.e., allow them to submit a new enrollment job under the same `user_id`):

```json
{
  "allow_new_enroll": true,
  "user_id": "<User ID>"
}
```

* `allow_new_enroll`: Set to `true` to enable enrollment for an existing user.

#### Delete or Permanently Block a User ID

{% hint style="danger" %}
Deleting a user is **permanent** and cannot be **reversed**. Whenever possible, we recommend **re-enrolling** users instead of deleting them.

**Once deleted, the `user_id` cannot be reused.**
{% endhint %}

```json
{
  "deleted": true,
  "user_id": "<User ID>"
}
```

* `deleted`: Set to `true` to permanently remove user data.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://legacy-docs.usesmileid.com/further-reading/faqs/how-to-re-enroll-or-delete-a-user.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
