Skip to main content

delete-model

Delete a model from a live LiteLLM proxy. Asks for the model name or model_id and confirms before calling POST /model/delete. Use when the user wants to remove, delete, or unregister a model from a LiteLLM proxy instance.

معلومات المصدر

المستودع
BerriAI/litellm-skills
آخر نشاط في المصدر
١٥ أبريل ٢٠٢٦ في ٠٧:٥٨
لغة SKILL.md المكتشفة
الإنجليزية
النجوم
٩٦
التفرعات
١٧

خيارات التثبيت

يُحدَّد Prompt الذي يراجع المصدر أولًا بشكل افتراضي. يمكنك التبديل إلى أمر مباشر أو تنزيل نسخة محلية.

مراجعة ملفات المصدر

اقرأ SKILL.md وأي ملفات مرافقة يعرضها SkillsMP قبل أن تقرر التثبيت.

عرض SKILL.md

SKILL.md
تعليمات المصدر · معاينة للقراءة فقط
name
delete-model
description
Delete a model from a live LiteLLM proxy. Asks for the model name or model_id and confirms before calling POST /model/delete. Use when the user wants to remove, delete, or unregister a model from a LiteLLM proxy instance.
license
MIT
compatibility
Requires curl.
metadata
{"author":"BerriAI","version":"1.0"}
allowed-tools
Bash(curl:*)
# Delete Model Remove a model from a live LiteLLM proxy. ## Setup ``` LITELLM_BASE_URL — e.g. https://my-proxy.example.com LITELLM_API_KEY — proxy admin key ``` ## Ask the user 1. **Model name or model_id** — if they give a name, look up the ID first: ```bash curl -s "$BASE/model/info" -H "Authorization: Bearer $KEY" | python3 -c " import sys,json for m in json.load(sys.stdin).get('data',[]): print(m['model_info']['id'], m['model_name']) " ``` 2. **Confirm** — show the model name and ask for confirmation before deleting. ## Run ```bash curl -s -X POST "$BASE/model/delete" \ -H "Authorization: Bearer $KEY" \ -H "Content-Type: application/json" \ -d '{"id": "<model_id>"}' ``` ## Output Show the success message. Warn the user that any keys scoped to this model name will start getting errors.
عرض على GitHub