Functions/Public/Remove-InfluxDbUser.ps1

function Remove-InfluxDbUser {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory)]
        [ValidateNotNullOrEmpty()]
        [string]
        $User
    )
    
    Invoke-InfluxDbApi -Query "DROP USER $User" -Method Post
}