SageMaker / Client / delete_training_job
delete_training_job¶
- SageMaker.Client.delete_training_job(**kwargs)¶
Deletes a training job. After SageMaker deletes a training job, all of the metadata for the training job is lost. You can delete only training jobs that are in a terminal state (
Stopped,Failed, orCompleted) and don’t retain anAvailablemanaged warm pool. You cannot delete a job that is in theInProgressorStoppingstate. After deleting the job, you can reuse its name to create another training job.See also: AWS API Documentation
Request Syntax
response = client.delete_training_job( TrainingJobName='string' )
- Parameters:
TrainingJobName (string) –
[REQUIRED]
The name of the training job to delete.
- Returns:
None
Exceptions
SageMaker.Client.exceptions.ResourceNotFoundSageMaker.Client.exceptions.ResourceInUse