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, or Completed) and don’t retain an Available managed warm pool. You cannot delete a job that is in the InProgress or Stopping state. 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.ResourceNotFound

  • SageMaker.Client.exceptions.ResourceInUse