Delete a source label

September 29, 2026

Table of contents

  1. Request Headers
  2. Responses
  3. Model
  4. Examples
  5. Try It

Remove a label from its notebook. Its sources are not deleted: they stay in the notebook, without this label. To remove a source itself use DELETE /sources/source.

https://api.useapi.net/v1/gemini-notebook/labels/label

  • label is required, the label id from GET /labels or POST /labels, URL-encoded in the path (it contains : and @). The id names its account and notebook, so no email or notebook is needed.
Request Headers
Authorization: Bearer {API token}
Responses
  • 204 No Content

    The label was deleted. No body.

  • 400 Bad Request

    The path does not hold a valid label id.

    {
      "error": "Path parameter label (user%3A12345-user%40example.com-notebook%3Ad02c903b-17f8-4241-a263-2be9e7359d55) is not a valid label id",
      "code": 400
    }
    
  • 401 Unauthorized

    Invalid API token.

    {
      "error": "useapi.net ⁝ Unauthorized",
      "code": 401
    }
    
  • 403 Forbidden

    The id was issued to a different API token.

    {
      "error": "user:[email protected]:d02c903b-17f8-4241-a263-2be9e7359d55:5973ba2b-845e-41b5-97b2-ef855d5746ad does not belong to this API token",
      "code": 403
    }
    
  • 404 Not Found

    The label is no longer in the notebook, the notebook was deleted, or its account is no longer configured.

    {
      "error": "Label user:[email protected]:d02c903b-17f8-4241-a263-2be9e7359d55:5973ba2b-845e-41b5-97b2-ef855d5746ad not found",
      "code": 404
    }
    
  • 596 Account Error

    Google reported the account as signed out. While we re-check it, the answer is the first message below. Retry in about a minute. If it stays signed out, the account is paused, you receive an email, and the answer becomes the second message until you re-add it via Setup Gemini Notebook.

    {
      "error": "Google reported this account as signed out. We are re-checking it — please retry in about a minute. If it stays signed out, you will receive a re-add email.",
      "code": 596
    }
    
    {
      "error": "Account [email protected]: Google signed this account out. Re-add it at https://useapi.net/docs/start-here/setup-gemini-notebook",
      "code": 596
    }
    
  • 503 Service Unavailable

    Google is temporarily unavailable or is challenging our network. Retry in a few minutes. A 502 means Google answered with an unexpected error.

    {
      "error": "Google is temporarily unavailable (GyzE7e grpc 14), please retry",
      "code": 503
    }
    
Model

A successful delete returns 204 with no body. Errors return:

{ // TypeScript, all fields are optional
  error: string
  code: number
}
Examples
  • LABEL="user:[email protected]:d02c903b-17f8-4241-a263-2be9e7359d55:5973ba2b-845e-41b5-97b2-ef855d5746ad"
    curl -X DELETE "https://api.useapi.net/v1/gemini-notebook/labels/$(python3 -c "import urllib.parse,sys;print(urllib.parse.quote(sys.argv[1],safe=''))" "$LABEL")" \
       -H "Authorization: Bearer …"
    
  • const token = "API token";
    const label = "user:[email protected]:d02c903b-17f8-4241-a263-2be9e7359d55:5973ba2b-845e-41b5-97b2-ef855d5746ad";
    const apiUrl = `https://api.useapi.net/v1/gemini-notebook/labels/${encodeURIComponent(label)}`;
    const response = await fetch(apiUrl, {
      method: "DELETE",
      headers: {
        "Authorization": `Bearer ${token}`,
      },
    });
    console.log("response", response.status);
    
  • import requests, urllib.parse
    token = "API token"
    label = "user:[email protected]:d02c903b-17f8-4241-a263-2be9e7359d55:5973ba2b-845e-41b5-97b2-ef855d5746ad"
    apiUrl = "https://api.useapi.net/v1/gemini-notebook/labels/" + urllib.parse.quote(label, safe="")
    headers = {
        "Authorization" : f"Bearer {token}"
    }
    response = requests.delete(apiUrl, headers=headers)
    print(response.status_code)
    
Try It