Skip to main content

Delete Custom Model

Delete a custom model.

Endpoint

DELETE /api/v3/custom_models/{id}

Path Parameters

ParameterTypeRequiredDescription
idnumberYesModel ID to delete

Request Type

type DeleteCustomModelPayload = {
modelId: number;
};

Response Type

Wrapped in:

type BaseResponse<T> = {
// Response wrapper structure
};

Notes

  • On success, removes queries for the deleted model:
    • Model detail query
    • Model data query
  • Invalidates all custom model queries to refresh lists
  • Returns wrapped response with unknown data type
  • Does not show error boundary on failure

Important: Always export training data and metrics before deleting a model. Deletion is permanent and cannot be undone.