> For the complete documentation index, see [llms.txt](https://platformdocs.lattica.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://platformdocs.lattica.ai/how-to-guides/access-control/how-to-remove-tokens-assignment.md).

# How-To: Remove Token's Assignment

This guide explains how to remove a token’s assignment using both the **web console** and the **Python SDK**.

{% hint style="info" %}
While unassigned, the token cannot be used by the end-user until it is linked to a new workload.
{% endhint %}

***

{% tabs %}
{% tab title="🌐Console" %}
Follow these steps to remove a token’s assignment through the web console:

<figure><img src="/files/HgczFsXnX8HUQuepguGN" alt=""><figcaption><p>Remove Token's Assignment</p></figcaption></figure>

1. ### Navigate to Workload's Token Management

   Go to the **Token Management** section of the specific Workload on the dashboard.
2. ### Access the Token Tab

   In the model’s details page, navigate to the **Token** tab to view all tokens associated with the model.
3. ### **Find the Required Token and Remove the Assignment**
   * Click the **"x"** next to the token's assignment field.
   * Confirm the action by clicking the **Remove** button.

The token will now be unassigned and available for reassignment to another workload.
{% endtab %}

{% tab title="🧊 Python SDK" %}
You can also remove a token's assignment using the SDK. The following code demonstrates how to unassign a token:

```python
# Unassign Token from Model

import LatticaManagement

# Authenticate
lattica = LatticaManagement("your_license_from_lattica_console")

# Get a model_id and a token_id...
model_id = lattica.list_models()[0].model_id
token_id = lattica.list_tokens(model_id=model_id)[0].token_id

# Unassign token from model
lattica.unassign_token_from_model(token_id, model_id)
```

{% endtab %}
{% endtabs %}

{% hint style="info" %}

### Reassigning the Token

After removing the token’s assignment, you can reassign it to a different workload using the **token modification functionality**. For detailed steps on assigning a token to a Workload, see: \[How-To: [Assign Token to Workload](/how-to-guides/access-control/how-to-assign-token-to-workload.md)].
{% endhint %}
