{"record":{"id":"7ff032a67a8b1efb","repo":"BerriAI/litellm","slug":"video-delete-is-not-supported-by-google-veo-video","errorCode":null,"errorMessage":"Video delete is not supported by Google Veo. Videos are automatically cleaned up by Google.","messagePattern":"Video delete is not supported by Google Veo\\. Videos are automatically cleaned up by Google\\.","errorType":"exception","errorClass":"NotImplementedError","httpStatus":null,"severity":"info","filePath":"litellm/llms/gemini/videos/transformation.py","lineNumber":538,"sourceCode":"        self,\n        raw_response: httpx.Response,\n        logging_obj: LiteLLMLoggingObj,\n        custom_llm_provider: str | None = None,\n    ) -> dict[str, str]:\n        \"\"\"Video list is not supported.\"\"\"\n        raise NotImplementedError(\"Video list is not supported by Google Veo.\")\n\n    def transform_video_delete_request(\n        self,\n        video_id: str,\n        api_base: str,\n        litellm_params: GenericLiteLLMParams,\n        headers: dict,\n    ) -> tuple[str, dict]:\n        \"\"\"\n        Video delete is not supported by Veo API.\n        \"\"\"\n        raise NotImplementedError(\n            \"Video delete is not supported by Google Veo. Videos are automatically cleaned up by Google.\"\n        )\n\n    def transform_video_delete_response(\n        self,\n        raw_response: httpx.Response,\n        logging_obj: LiteLLMLoggingObj,\n    ) -> VideoObject:\n        \"\"\"Video delete is not supported.\"\"\"\n        raise NotImplementedError(\"Video delete is not supported by Google Veo.\")\n\n    def transform_video_create_character_request(self, name, video, api_base, litellm_params, headers):\n        raise NotImplementedError(\"video create character is not supported for Gemini\")\n\n    def transform_video_create_character_response(self, raw_response, logging_obj):\n        raise NotImplementedError(\"video create character is not supported for Gemini\")\n\n    def transform_video_get_character_request(self, character_id, api_base, litellm_params, headers):","sourceCodeStart":520,"sourceCodeEnd":556,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/llms/gemini/videos/transformation.py#L520-L556","documentation":"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.","triggerScenarios":"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.","commonSituations":"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.","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."],"exampleFix":"# before\nlitellm.video_delete(model=\"gemini/veo-3\", video_id=video.id)\n\n# after: Veo videos auto-expire; just drop the reference\nstore.remove(video.id)  # your own bookkeeping only","handlingStrategy":"try-catch","validationCode":"def provider_supports_video_delete(model: str) -> bool:\n    return not model.lower().startswith((\"gemini/\", \"vedo/\"))","typeGuard":"def can_delete_video(model: str) -> bool:\n    return not model.lower().startswith((\"gemini/\", \"vedo/\"))","tryCatchPattern":"try:\n    litellm.video_delete(model=model, video_id=video_id)\nexcept NotImplementedError:\n    pass  # Veo: Google expires videos automatically","preventionTips":["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."],"tags":["veo","gemini","video-delete","not-implemented","unsupported-operation","auto-expiry"],"backgroundTag":"unsupported-operation","analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}