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.
Follow these steps to remove a token’s assignment through the web console:

The token will now be unassigned and available for reassignment to another model.
You can also remove a token's assignment using the SDK. The following code demonstrates how to unassign a token:
# 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)Reassigning the Token
After removing the token’s assignment, you can reassign it to a different model using the token modification functionality. For detailed steps on assigning a token to a model, see: [How-To: Assign Token to Model].
Last updated
Was this helpful?