Commands/Types.PS1XML/Clear-TypeData.ps1

function Clear-TypeData
{
    <#
    .Synopsis
        Clears formatting to the current session.
    .Description
        The Clear-FormatData command removes the formatting data for the current session.
        The formatting data must have been added with Add-FormatData
    .Link
        Push-TypeData
    .Link
        Pop-TypeData
    #>

    param(
    )


    process {
        $TypeModules.Values | Where-Object {$_} |Remove-Module
        $Script:TypeModules = @{}
    }
}