{"record":{"id":"3451c5563c1e350a","repo":"BerriAI/litellm","slug":"failed-to-delete-access-group-e","errorCode":null,"errorMessage":"Failed to delete access group: {e}","messagePattern":"Failed to delete access group: (.+?)","errorType":"http","errorClass":"HTTPException","httpStatus":500,"severity":"error","filePath":"litellm/proxy/management_endpoints/model_access_group_management_endpoints.py","lineNumber":825,"sourceCode":"            written_models=removed_pairs,\n            access_group=access_group,\n        )\n\n        verbose_proxy_logger.info(\n            \"Successfully deleted access group '%s' from %s deployments\", access_group, models_updated\n        )\n\n        return DeleteModelGroupResponse(\n            access_group=access_group,\n            models_updated=models_updated,\n            message=f\"Access group '{access_group}' deleted successfully\",\n        )\n\n    except HTTPException:\n        raise\n    except Exception as e:\n        verbose_proxy_logger.exception(\"Error deleting access group '%s': %s\", access_group, e)\n        raise HTTPException(\n            status_code=500,\n            detail={\"error\": f\"Failed to delete access group: {e}\"},\n        )\n","sourceCodeStart":807,"sourceCodeEnd":829,"githubUrl":"https://github.com/BerriAI/litellm/blob/77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8/litellm/proxy/management_endpoints/model_access_group_management_endpoints.py#L807-L829","documentation":"Catch-all around the access-group deletion transaction: unexpected exceptions while stripping the group from deployments or deleting it are logged and re-raised as this 500; HTTPExceptions (validation/404) pass through.","triggerScenarios":"Thrown at litellm/proxy/management_endpoints/model_access_group_management_endpoints.py:825 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Check proxy server logs for the underlying exception details.","Verify the access group exists before deleting."],"exampleFix":null,"handlingStrategy":"try-catch","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"77b7c6c40c0c5aa5fbcb1d6a1825ac39ca8829b8","analyzedAt":"2026-08-18T11:44:31.656Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}