From c2e01735e49d33dfdaf5f91fd091d87c0c2f8733 Mon Sep 17 00:00:00 2001 From: berkeyalciin <153740525+berkeyalciin@users.noreply.github.com> Date: Wed, 14 Jan 2026 01:12:43 +0300 Subject: [PATCH] Fix: change delete() to delete_many() for prompt deletion to handle non-unique prompt_id (#18966) Co-authored-by: Berke Yalcin --- litellm/proxy/prompts/prompt_endpoints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/litellm/proxy/prompts/prompt_endpoints.py b/litellm/proxy/prompts/prompt_endpoints.py index ac39e5f4b2..0c77b6f851 100644 --- a/litellm/proxy/prompts/prompt_endpoints.py +++ b/litellm/proxy/prompts/prompt_endpoints.py @@ -851,7 +851,7 @@ async def delete_prompt( ) # Delete the prompt from the database - await prisma_client.db.litellm_prompttable.delete( + await prisma_client.db.litellm_prompttable.delete_many( where={"prompt_id": prompt_id} )