Deletes an Amazon Lookout for Vision model. You can't delete a running model. To stop a running model,
use the StopModel operation.
It might take a few seconds to delete a model. To determine if a model has been deleted, call
ListModels and check if the version of the model (ModelVersion) is in the
Models array.
This operation requires permissions to perform the
lookoutvision:DeleteModel operation.
example
Use a bare-bones client and the command you need to make an API call.
Deletes an Amazon Lookout for Vision model. You can't delete a running model. To stop a running model, use the StopModel operation.
It might take a few seconds to delete a model. To determine if a model has been deleted, call ListModels and check if the version of the model (
ModelVersion
) is in theModels
array.This operation requires permissions to perform the
lookoutvision:DeleteModel
operation.Use a bare-bones client and the command you need to make an API call.
import { LookoutVisionClient, DeleteModelCommand } from "@aws-sdk/client-lookoutvision"; // ES Modules import // const { LookoutVisionClient, DeleteModelCommand } = require("@aws-sdk/client-lookoutvision"); // CommonJS import const client = new LookoutVisionClient(config); const command = new DeleteModelCommand(input); const response = await client.send(command);
DeleteModelCommandInput for command's
input
shape.DeleteModelCommandOutput for command's
response
shape.config for LookoutVisionClient's
config
shape.