flip_api.model_services.delete_model ==================================== .. py:module:: flip_api.model_services.delete_model Attributes ---------- .. autoapisummary:: flip_api.model_services.delete_model.router Functions --------- .. autoapisummary:: flip_api.model_services.delete_model.delete_model_endpoint Module Contents --------------- .. py:data:: router .. py:function:: delete_model_endpoint(request: fastapi.Request, model_id: uuid.UUID = Path(..., title='Model ID'), db: sqlmodel.Session = Depends(get_session), user_id: uuid.UUID = Depends(verify_token)) -> None Delete a specific model. :param request: The incoming HTTP request. :type request: Request :param model_id: The ID of the model to delete. :type model_id: UUID :param db: Database session. :type db: Session :param user_id: User ID from authentication. :type user_id: UUID :returns: None :raises HTTPException: If the user is not allowed, if the model does not exist, if the model is already deleted, or if there is a database error.