Public/Remove-P1Tenant.ps1
function Remove-P1Tenant { <# .Synopsis Uninstall an existing PlannerOne tenant (service + web app). .Description Uninstall an existing PlannerOne tenant with the given parameters. .Parameter Tenant The tenant name. .Example # Uninstall a PlannerOne tenant named P1Prod. Remove-P1Tenant -Tenant P1Prod #> [cmdletbinding()] param( [string] $Tenant ) Process { Remove-P1ServerInstance -Tenant $Tenant Remove-P1WebApp -Tenant $Tenant Remove-Tenant -Tenant $Tenant } } |