SageMaker / Client / delete_compilation_job

delete_compilation_job#

SageMaker.Client.delete_compilation_job(**kwargs)#

Deletes the specified compilation job. This action deletes only the compilation job resource in Amazon SageMaker. It doesn’t delete other resources that are related to that job, such as the model artifacts that the job creates, the compilation logs in CloudWatch, the compiled model, or the IAM role.

You can delete a compilation job only if its current status is COMPLETED, FAILED, or STOPPED. If the job status is STARTING or INPROGRESS, stop the job, and then delete it after its status becomes STOPPED.

See also: AWS API Documentation

Request Syntax

response = client.delete_compilation_job(
    CompilationJobName='string'
)
Parameters:

CompilationJobName (string) –

[REQUIRED]

The name of the compilation job to delete.

Returns:

None

Exceptions