# 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 %}


---

# Agent Instructions: 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:

```
GET https://platformdocs.lattica.ai/how-to-guides/access-control/how-to-remove-tokens-assignment.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
