BerriAI/litellm · info · NotImplementedError
Video delete is not supported by Google Veo. Videos are…
Error message
Video delete is not supported by Google Veo. Videos are automatically cleaned up by Google.
What it means
transform_video_delete_request for Gemini/Veo raises NotImplementedError: Veo has no delete API, and as the message states, Google expires generated videos automatically after a retention period (typically ~2 days). There is deliberately nothing to wire up for deletion.
Solutions
- Skip deletion for Gemini/Veo — rely on Google's automatic expiry and document that behavior to users.
- If policy requires immediate unavailability, stop serving/storing the video id and download URL on your side.
- Gate the delete action per provider so Gemini models are excluded.
Example fix
# before litellm.video_delete(model="gemini/veo-3", video_id=video.id) # after: Veo videos auto-expire; just drop the reference store.remove(video.id) # your own bookkeeping only
Defensive patterns
Strategy: try-catch
Validate before calling
def provider_supports_video_delete(model: str) -> bool:
return not model.lower().startswith(("gemini/", "vedo/")) Type guard
def can_delete_video(model: str) -> bool:
return not model.lower().startswith(("gemini/", "vedo/")) Try / catch
try:
litellm.video_delete(model=model, video_id=video_id)
except NotImplementedError:
pass # Veo: Google expires videos automatically Prevention
- Treat delete as a no-op for Veo; document Google's automatic retention to stakeholders.
- Purge local references/downloads instead of calling the provider when unsupported.
- Centralize per-provider capability checks instead of scattering try/except.
When it happens
Trigger: Calling litellm.video_delete(model='gemini/veo-3', video_id=...) or a cleanup routine that deletes videos for every provider in a multi-provider app.
Common situations: Porting cleanup/housekeeping jobs from OpenAI's video API; GDPR-style deletion workflows applied uniformly across providers; test teardown that tries to remove generated assets.
Understand the failure class
Background: UnsupportedOperationException and "is not supported" errors: when a library deliberately refuses a call — this error's family across 30 libraries.
Related errors
- Video delete is not supported by Google Veo.
- video create character is not supported for Gemini
- video edit is not supported for Gemini
- video extension is not supported for Gemini
- video get character is not supported for Gemini
AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18).
Data as JSON: /api/errors/7ff032a67a8b1efb.
Report an issue: GitHub.
Appendix: source
Thrown at litellm/llms/gemini/videos/transformation.py:538
self,
raw_response: httpx.Response,
logging_obj: LiteLLMLoggingObj,
custom_llm_provider: str | None = None,
) -> dict[str, str]:
"""Video list is not supported."""
raise NotImplementedError("Video list is not supported by Google Veo.")
def transform_video_delete_request(
self,
video_id: str,
api_base: str,
litellm_params: GenericLiteLLMParams,
headers: dict,
) -> tuple[str, dict]:
"""
Video delete is not supported by Veo API.
"""
raise NotImplementedError(
"Video delete is not supported by Google Veo. Videos are automatically cleaned up by Google."
)
def transform_video_delete_response(
self,
raw_response: httpx.Response,
logging_obj: LiteLLMLoggingObj,
) -> VideoObject:
"""Video delete is not supported."""
raise NotImplementedError("Video delete is not supported by Google Veo.")
def transform_video_create_character_request(self, name, video, api_base, litellm_params, headers):
raise NotImplementedError("video create character is not supported for Gemini")
def transform_video_create_character_response(self, raw_response, logging_obj):
raise NotImplementedError("video create character is not supported for Gemini")
def transform_video_get_character_request(self, character_id, api_base, litellm_params, headers):View on GitHub (pinned to 77b7c6c40c)