Smaws_Client_SageMaker.DeleteWorkforceUse this operation to delete a workforce.
If you want to create a new workforce in an Amazon Web Services Region where a workforce already exists, use this operation to delete the existing workforce and then use CreateWorkforce to create a new workforce.
If a private workforce contains one or more work teams, you must use the DeleteWorkteam operation to delete all work teams before you delete the workforce. If you try to delete a workforce that contains one or more work teams, you will receive a ResourceInUse error.
val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error ] -> stringval request :
'http_type Smaws_Lib.Context.t ->
Types.delete_workforce_request ->
(Types.delete_workforce_response, [> Smaws_Lib.Protocols.AwsJson.error ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.delete_workforce_request ->
(Types.delete_workforce_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error ] * Smaws_Lib.Response.metadata)
Stdlib.result