Public/Remove-GCLearningModule.ps1
|
<# .SYNOPSIS Deletes a learning module. .DESCRIPTION Removes the specified learning module from Genesys Cloud. Uses the DELETE /api/v2/learning/modules/{moduleId} endpoint. .PARAMETER ModuleId The unique identifier of the learning module to delete. .EXAMPLE Remove-GCLearningModule -ModuleId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890' .NOTES Genesys Cloud API: DELETE /api/v2/learning/modules/{moduleId} #> function Remove-GCLearningModule { [CmdletBinding()] param( [Parameter(Mandatory = $true)] [string]$ModuleId ) $endpoint = "learning/modules/$ModuleId" return Invoke-GCApiRequest -Endpoint $endpoint -Method DELETE } |