Edit

Share via


Remove-SPOTheme

Removes a theme from the theme gallery.

Syntax

Default (Default)

Remove-SPOTheme
    [-Identity] <SpoThemePipeBind>
    [-WhatIf]
    [-Confirm]
    [<CommonParameters>]

Description

The Remove-SPOTheme cmdlet removes a theme from your tenant store.

Examples

Example 1

This example removes the "Custom Cyan" theme that was used in the previous examples for the Add-SPOTheme and Get-SPOTheme cmdlets.

Remove-SPOTheme -Identity "Custom Cyan"

Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Identity

Name of the theme to remove.

Parameter properties

Type:Microsoft.Online.SharePoint.PowerShell.SpoThemePipeBind
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Name

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-WhatIf

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

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

Microsoft.Online.SharePoint.PowerShell.SpoThemePipeBind

Outputs

System.Object