soc/api/v1/workloads/Remove-Workload.ps1

function Remove-WorkloadSoc
{
    [CmdletBinding(SupportsShouldProcess)]
    param(
        [Parameter(Mandatory)]
        [string] $AppAlias,
        [Parameter(Mandatory)]
        [string] $VersionAlias,
        [Parameter(Mandatory)]
        [string] $ComponentAlias,
        [Parameter(Mandatory)]
        [string] $WorkloadId
    )

    if ($PSCmdlet.ShouldProcess($WorkloadId))
    {
        return Invoke-Api Delete "/soc/api/v1/applications/$AppAlias/versions/$VersionAlias/components/$ComponentAlias/workloads/$WorkloadId"
    }
}