[[reference-ml-delete_trained_model]] //////// =========================================================================================================================== || || || || || || || ██████╗ ███████╗ █████╗ ██████╗ ███╗ ███╗███████╗ || || ██╔══██╗██╔════╝██╔══██╗██╔══██╗████╗ ████║██╔════╝ || || ██████╔╝█████╗ ███████║██║ ██║██╔████╔██║█████╗ || || ██╔══██╗██╔══╝ ██╔══██║██║ ██║██║╚██╔╝██║██╔══╝ || || ██║ ██║███████╗██║ ██║██████╔╝██║ ╚═╝ ██║███████╗ || || ╚═╝ ╚═╝╚══════╝╚═╝ ╚═╝╚═════╝ ╚═╝ ╚═╝╚══════╝ || || || || || || This file is autogenerated, DO NOT send pull requests that changes this file directly. || || You should update the script that does the generation, which can be found in: || || https://github.com/elastic/elastic-client-generator-js || || || || You can run the script with the following command: || || npm run elasticsearch -- --version || || || || || || || =========================================================================================================================== //////// [discrete] === client.ml.deleteTrainedModel Delete an unreferenced trained model. The request deletes a trained inference model that is not referenced by an ingest pipeline. {ref}/delete-trained-models.html[{es} documentation] [discrete] ==== Function signature [source,ts] ---- (MlDeleteTrainedModelRequest, options?): Promise ---- [discrete] ===== `MlDeleteTrainedModelRequest` [source,ts] ---- interface MlDeleteTrainedModelRequest extends <> { model_id: <> force?: boolean } ---- [discrete] ===== `MlDeleteTrainedModelResponse` [source,ts] ---- type MlDeleteTrainedModelResponse = <> ----