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