Public/SCIM/Remove-IDSCIMContainer.ps1

# .ExternalHelp IdentityCommand-help.xml
# UNTESTED: This command has not yet been verified against a live tenant - confirm it behaves as
# expected before relying on it in production.
function Remove-IDSCIMContainer {
    [CmdletBinding(SupportsShouldProcess)]
    param(
        [parameter(
            Mandatory = $true,
            ValueFromPipelinebyPropertyName = $true
        )]
        [ValidateNotNullOrEmpty()]
        [Alias('Uuid')]
        [String]$ID
    )

    BEGIN {}#begin

    PROCESS {

        if ($PSCmdlet.ShouldProcess($ID, 'Delete SCIM Container')) {

            #Send Request
            Invoke-IDSCIMRequest -Resource 'Containers' -Method 'DELETE' -ID $ID

        }

    }#process

    END {}#end

}