LatticaAI Documentation
  • Welcome to LatticaAI
  • Conceptual Guide
  • Architecture Overview
    • Management Client
    • Query Client
  • Platform Workflows
    • Account Management
    • Model Management
    • User Access Management
    • Query Submission
    • Credit Management
    • Worker Management
  • How-To Guides
    • Client Installation
      • How-To: Install Management Client
      • How-To: Install Query Client
    • Model Lifecycle
      • How-To: Deploy AI model
      • How-To: Modify AI Model Settings
    • Access Control
      • How-To: Create User Access Token
      • How-To: Modify User Access Token Setting
      • How-To: Remove Token's Assignment
      • How-To: Assign Token to Model
      • How-To: See List of Tokens
    • Resource Management
      • How-To: Start Worker
      • How-To: Stop Worker
      • How-To: Monitor Worker Performance
    • Secure Query Processing
      • How To: Upload Evaluation Key
      • How-To: Encrypt Input Message
      • How To: Execute Query
      • How-To: Decrypt Output Data
      • How-To: Encrypt, Execute, and Decrypt in One Step
    • Account and Finance Operations
      • How-To: View Payment Transaction History
      • How-To: Update Account Information
      • How-To: View Credit Balance and Add Credit to Your Account
      • How-To: Monitor Balance and Usage
  • Demo Tutorials
    • Image Sharpening with LatticaAI Demo Tutorial
    • Sentiment Analysis with LatticaAI Demo Tutorial
    • Health Analysis with LatticaAI Demo Tutorial
    • Digit Recognition with LatticaAI Demo Tutorial
    • Zooming Into Each Step of Demo Run with LatticaAI flow
Powered by GitBook
On this page

Was this helpful?

  1. How-To Guides
  2. Access Control

How-To: Remove Token's Assignment

PreviousHow-To: Modify User Access Token SettingNextHow-To: Assign Token to Model

Last updated 3 months ago

Was this helpful?

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

While unassigned, the token cannot be used by the end-user until it is linked to a new model.


Follow these steps to remove a token’s assignment through the web console:

  1. Navigate to Model's Token Management

    Go to the Token Management section of the specific Model 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 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
Remove Token's Assignment