Remove-AdfsWebTheme
Remove-AdfsWebTheme
Removes a web theme.
Syntax
Parameter Set: IdentifierName
Remove-AdfsWebTheme [-TargetName] <String> [-Confirm] [-WhatIf] [ <CommonParameters>]
Parameter Set: IdentifierObject
Remove-AdfsWebTheme [-TargetWebTheme] <AdfsWebTheme> [-Confirm] [-WhatIf] [ <CommonParameters>]
Detailed Description
The Remove-AdfsWebTheme cmdlet removes an AdfsWebTheme object. Specify a web theme by name or by using the Get-AdfsWebTheme cmdlet.
Parameters
-TargetName<String>
Specifies a name. The cmdlet removes the theme that you specify by name.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
-TargetWebTheme<AdfsWebTheme>
Specifies an AdfsWebTheme object. The cmdlet removes the theme that you specify. To obtain an AdfsWebTheme object, use the Get-AdfsWebTheme cmdlet.
Aliases |
none |
Required? |
true |
Position? |
1 |
Default Value |
none |
Accept Pipeline Input? |
True (ByValue) |
Accept Wildcard Characters? |
false |
-Confirm
Prompts you for confirmation before running the cmdlet.
Required? |
false |
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.
Required? |
false |
Position? |
named |
Default Value |
false |
Accept Pipeline Input? |
false |
Accept Wildcard Characters? |
false |
<CommonParameters>
This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see about_CommonParameters (https://go.microsoft.com/fwlink/p/?LinkID=113216).
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
- System.String;Microsoft.IdentityServer.Management.Resources.AdfsWebTheme
Outputs
The output type is the type of the objects that the cmdlet emits.
Examples
Example 1: Remove a named web theme
This command removes the web theme named Theme01.
PS C:\> Remove-AdfsWebTheme -TargetName "Theme01"
Example 2: Remove a web theme by specifying a web theme object
This command uses the Get-AdfsWebTheme cmdlet to get the web theme named Theme02, and then passes it to the current cmdlet by using the pipeline operator. The cmdlet removes that web theme.
PS C:\> Get-AdfsWebTheme -Name "Theme02" | Remove-AdfsWebTheme