Delete

Cache Delete

Endpoint for deleting a key from the cache. All responses from litellm proxy have x-litellm-cache-key in the headers

Parameters:

  • keys: Optional[List[str]] - A list of keys to delete from the cache. Example {"keys": ["key1", "key2"]}
curl -X POST "http://0.0.0.0:4000/cache/delete"     -H "Authorization: Bearer sk-1234"     -d '{"keys": ["key1", "key2"]}'
POST/cache/delete
Authorization
Response

Successful Response

Body
any
Request
const response = await fetch('/cache/delete', {
    method: 'POST',
    headers: {},
});
const data = await response.json();