Public/Remove-GCSocialMediaTopic.ps1

<#
.SYNOPSIS
    Deletes a social media topic.

.DESCRIPTION
    Removes the specified social media topic from Genesys Cloud.
    Uses the DELETE /api/v2/socialmedia/topics/{topicId} endpoint.

.PARAMETER TopicId
    The unique identifier of the social media topic to delete.

.EXAMPLE
    Remove-GCSocialMediaTopic -TopicId 'a1b2c3d4-e5f6-7890-abcd-ef1234567890'

.NOTES
    Genesys Cloud API: DELETE /api/v2/socialmedia/topics/{topicId}
#>

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

    $endpoint = "socialmedia/topics/$TopicId"
    return Invoke-GCApiRequest -Endpoint $endpoint -Method DELETE
}