---
title: "Deletes the Classifier with the given ID."
method: DELETE
path: "/classifier/{classifier_id}"
tags: ["classifier"]
---

# Deletes the Classifier with the given ID.

`DELETE /classifier/{classifier_id}`

## Path parameters

- `classifier_id` integer, required

## Response `200`

Successful Response

- ClassifierRead
  - `project_id` integer, required — ID of the project this classifier belongs to
  - `name` string, required — Name of the classifier
  - `base_model` string, required — Name of the base model
  - `type` 'document' | 'sentence' | 'span', required
  - `path` string, required — Name of the classifier
  - `labelid2classid` object, required — Mapping from internal model label id to code/tag id, depending on ClassifierModel.
  - `train_params` object, required — Training parameters
  - `train_loss` ClassifierLoss[], required — Training loss per step
    - `step` integer, required — Training step
    - `value` number, required — Loss value
  - `train_data_stats` ClassifierData[], required — Training data stats
    - `class_id` integer, required — ID of the class (tag or code)
    - `num_examples` integer, required — Number of examples for the class (tag or code)
  - `id` integer, required — ID of the Classifier
  - `created` string, date-time, required — Creation timestamp of the classifier
  - `updated` string, date-time, required — Update timestamp of the classifier
  - `class_ids` integer[], required — List of class IDs the classifier was trained with (tag or code)
  - `evaluations` ClassifierEvaluationRead[], required — List of evaluations for the classifier
    - `classifier_id` integer, required — ID of the Classifier
    - `f1` number, required — F1 score
    - `precision` number, required — Precision score
    - `recall` number, required — Recall score
    - `accuracy` number, required — Accuracy score
    - `eval_data_stats` ClassifierData[], required — Evaluation data statistics
      - `class_id` integer, required — ID of the class (tag or code)
      - `num_examples` integer, required — Number of examples for the class (tag or code)
    - `id` integer, required — ID of the Classifier Evaluation
    - `created` string, date-time, required — Creation timestamp of the classifier

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/uhh-lt/apis/discourse-analysis-tool-suite-api.md) · [All operations](https://skmtc.net/uhh-lt/apis/discourse-analysis-tool-suite-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/uhh-lt/discourse-analysis-tool-suite-api/revisions/6b22366ce2d1/schema)
