BerriAI/litellm · error · HTTPException

Access denied: You do not have permission to delete this vec

Error message

Access denied: You do not have permission to delete this vector store

What it means

Authorization failure on vector-store deletion: the store exists (in DB or memory registry) but the caller's key/team is not permitted to delete it. Deletion is restricted to keys with access; an admin must perform or authorize the delete.

Source

Thrown at litellm/proxy/vector_store_endpoints/management_endpoints.py:739

        if litellm.vector_store_registry is not None:
            memory_vector_store: Final = litellm.vector_store_registry.get_litellm_managed_vector_store_from_registry(
                vector_store_id=data.vector_store_id
            )
            if memory_vector_store is not None:
                memory_vector_store_exists = True
                if vector_store_to_check is None:
                    vector_store_to_check = memory_vector_store

        # If not found in either location, raise 404
        if not db_vector_store_exists and not memory_vector_store_exists:
            raise HTTPException(
                status_code=404,
                detail=f"Vector store with ID {data.vector_store_id} not found",
            )

        # Check access control
        if vector_store_to_check and not await _check_vector_store_access(vector_store_to_check, user_api_key_dict):
            raise HTTPException(
                status_code=403,
                detail="Access denied: You do not have permission to delete this vector store",
            )

        # Delete from database if exists
        if db_vector_store_exists:
            await _vector_store_table(prisma_client).delete(where={"vector_store_id": data.vector_store_id})

        # Delete from in-memory registry if exists
        if memory_vector_store_exists and litellm.vector_store_registry is not None:
            litellm.vector_store_registry.delete_vector_store_from_registry(vector_store_id=data.vector_store_id)

        return {
            "status": "success",
            "message": f"Vector store {data.vector_store_id} deleted successfully",
        }
    except HTTPException:
        raise

View on GitHub (pinned to 77b7c6c40c)

Solutions

  1. Use a key/team with delete permission for this vector store, or ask an admin to grant it.
Defensive patterns

Strategy: validation

When it happens

Trigger: Thrown at litellm/proxy/vector_store_endpoints/management_endpoints.py:739 when the library encounters an invalid state.

Common situations: See trigger scenarios.

Understand the failure class


AI-assisted analysis of BerriAI/litellm@77b7c6c40c (2026-08-18). Data as JSON: /api/errors/53a757e0269bfe9f. Report an issue: GitHub.