Functions/Operations/Remove-Schema.ps1


function Remove-Schema
{
    <#
    .SYNOPSIS
    Removes a schema.
 
    .EXAMPLE
    Remove-Schema -Name 'rivetexample'
 
    Drops/removes the `rivetexample` schema.
    #>

    [CmdletBinding()]
    param(
        [Parameter(Mandatory=$true)]
        [Alias('SchemaName')]
        [string]
        # The name of the schema.
        $Name
    )

    Set-StrictMode -Version 'Latest'

    New-Object 'Rivet.Operations.RemoveSchemaOperation' $Name
}