Remove-SCSpfTenant

Removes one or more tenant objects.

Syntax

Remove-SCSpfTenant
      -Tenant <Tenant[]>
      [-WhatIf]
      [-Confirm]
      [<CommonParameters>]

Description

The Remove-SCSPFTenant cmdlet removes one or more tenant objects from the Service Provider Foundation database.

Examples

Example 1: Remove a tenant object

PS C:\>$Tenant = Get-SCSPFTenant -Name "Contoso"
PS C:\> Remove-SCSPFTenant -Tenant $Tenant

The first command gets the tenant object named Contoso and stores the object in the $Tenant variable.

The second command removes the tenant.

Required Parameters

-Tenant

Specifies the name of one or more tenant objects. To obtain a tenant, use the Get-SCSPFTenant cmdlet.

Type:Tenant[]
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False