functions/Stack/DeleteNamespaceAndData.ps1
<#
.SYNOPSIS DeleteNamespaceAndData .DESCRIPTION DeleteNamespaceAndData .INPUTS DeleteNamespaceAndData - The name of DeleteNamespaceAndData .OUTPUTS None .EXAMPLE DeleteNamespaceAndData .EXAMPLE DeleteNamespaceAndData #> function DeleteNamespaceAndData() { [CmdletBinding()] param ( [Parameter(Mandatory = $true)] [ValidateNotNullOrEmpty()] [string] $namespace ) Write-Verbose 'DeleteNamespaceAndData: Starting' [hashtable]$Return = @{} CleanOutNamespace -namespace $namespace $isAzure=$true if ($isAzure) { DeleteAzureStorage -namespace $namespace } else { DeleteOnPremStorage -namespace $namespace } DeleteAllSecretsInNamespace -namespace $namespace Write-Verbose 'DeleteNamespaceAndData: Done' return $Return } Export-ModuleMember -Function 'DeleteNamespaceAndData' |