Skip to content

Interactions API: interactions.delete returns 501 with Gemini Developer API #2803

Description

@belbas

Interactions API: interactions.delete returns 501 with Gemini Developer API

Description

Deleting a completed, stored interaction consistently returns HTTP 501 when
using the Gemini Developer API with API-key authentication.

Interaction creation and completion work normally. Only the cleanup request
fails.

Environment

  • google-genai: 2.16.0
  • Also reproduced with: 2.10.0
  • Python: 3.11.8
  • Authentication: Gemini Developer API key, not Vertex AI
  • Endpoint: https://generativelanguage.googleapis.com/v1beta
  • Model: gemini-3.5-flash-lite

Minimal reproduction

import os

from google import genai


client = genai.Client(api_key=os.environ["GEMINI_API_KEY"])

interaction = client.interactions.create(
    model="gemini-3.5-flash-lite",
    input="Reply with OK.",
    store=True,
)

client.interactions.delete(id=interaction.id)

Expected behavior

The interaction is deleted successfully, as documented for
DELETE /v1beta/interactions/{id}.

Actual behavior

The API returns:

DELETE https://generativelanguage.googleapis.com/v1beta/interactions/{id}
HTTP/1.1 501 Not Implemented

The SDK retries the request and eventually raises InternalServerError.

The same 501 response occurs when the documented revision header is passed
explicitly:

client.interactions.delete(
    id=interaction.id,
    extra_headers={"Api-Revision": "2026-05-20"},
)

Additional information

Documentation:

Metadata

Metadata

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.status:awaiting user responsetype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions