Delete an account
September 29, 2026
Table of contents
Remove a connected Google account from your useapi.net account. The stored cookies are deleted and the account slot is freed.
Nothing is deleted on Google’s side. The account’s notebooks, sources and artifacts stay in Gemini Notebook, and you can connect the account again at any time with POST /accounts. Notebook, source and artifact ids of a removed account stop working until it is connected again.
https://api.useapi.net/v1/gemini-notebook/accounts/
emailis the email of a connected account, URL-encoded in the path.
Request Headers
Authorization: Bearer {API token}
API tokenis required, see Setup useapi.net for details.
Responses
-
204 No Content — the account was removed. The response body is empty.
-
400 Bad Request — the
emailin the path is not a valid email, or no account is connected.{ "error": "Path parameter email (not-an-email) not a valid email", "code": 400 } -
Invalid API token.
{ "error": "useapi.net ⁝ Unauthorized", "code": 401 } -
404 Not Found — no account is connected for this
email.{ "error": "Account [email protected] not found", "code": 404 }
Examples
-
curl -X DELETE "https://api.useapi.net/v1/gemini-notebook/accounts/user%40example.com" \ -H "Authorization: Bearer …" -
const token = "API token"; const email = "Previously configured account email"; const apiUrl = `https://api.useapi.net/v1/gemini-notebook/accounts/${encodeURIComponent(email)}`; const response = await fetch(apiUrl, { method: "DELETE", headers: { "Authorization": `Bearer ${token}`, }, }); console.log("response", response.status); -
import requests from urllib.parse import quote token = "API token" email = "Previously configured account email" apiUrl = f"https://api.useapi.net/v1/gemini-notebook/accounts/{quote(email, safe='')}" headers = { "Authorization" : f"Bearer {token}" } response = requests.delete(apiUrl, headers=headers) print(response.status_code)