Public/Remove-GCWebDeployment.ps1

<#
.SYNOPSIS
    Deletes a web deployment.

.DESCRIPTION
    Removes the specified web deployment from Genesys Cloud.
    Uses the DELETE /api/v2/webdeployments/deployments/{deploymentId} endpoint.

.PARAMETER DeploymentId
    The unique identifier of the web deployment to delete.

.EXAMPLE
    Remove-GCWebDeployment -DeploymentId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890'

.NOTES
    Genesys Cloud API: DELETE /api/v2/webdeployments/deployments/{deploymentId}
#>

function Remove-GCWebDeployment {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory = $true)]
        [string]$DeploymentId
    )

    $endpoint = "webdeployments/deployments/$DeploymentId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method DELETE
}