flip_api.model_services.delete_model

Attributes

router

Functions

delete_model_endpoint(, db, user_id)

Delete a specific model.

Module Contents

flip_api.model_services.delete_model.router
flip_api.model_services.delete_model.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.

Parameters:
  • request (Request) – The incoming HTTP request.

  • model_id (UUID) – The ID of the model to delete.

  • db (Session) – Database session.

  • user_id (UUID) – User ID from authentication.

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.