Skip to content

/AWS1/CL_SGM=>DELETEWORKFORCE()

About DeleteWorkforce

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 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 recieve a ResourceInUse error.

Method Signature

IMPORTING

Required arguments:

IV_WORKFORCENAME TYPE /AWS1/SGMWORKFORCENAME /AWS1/SGMWORKFORCENAME

The name of the workforce.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_SGMDELETEWORKFORCERSP /AWS1/CL_SGMDELETEWORKFORCERSP