Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

delete_workforce

delete_workforce(**kwargs)

Use 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 to create a new workforce.

Warning

If a private workforce contains one or more work teams, you must use the 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 recieve a ResourceInUse error.

See also: AWS API Documentation

Request Syntax

response = client.delete_workforce(
    WorkforceName='string'
)
Parameters
WorkforceName (string) --

[REQUIRED]

The name of the workforce.

Return type
dict
Returns
Response Syntax
{}

Response Structure

  • (dict) --