Remove-PlaceholderSetting
Removes placeholder setting(s) from an item using the filtering parameters.
Syntax
Detailed Description
Removes placeholder setting(s) from an item using the filtering parameters.
© 2010-2019 Adam Najmanowicz, Michael West. All rights reserved. Sitecore PowerShell Extensions
Parameters
-Database <string>
Database containing the item to be processed - can work with Language parameter to narrow the publication scope.
-Device <DeviceItem>
Device for which the placeholder settings will be removed.
-FinalLayout <switch>
Targets the Final Layout. If not provided, the Shared Layout will be targeted. Applies to Sitecore 8.0 and higher only.
-Id <string>
Id of the item to be processed - can work with Language parameter to narrow the publication scope.
-Index <int>
Index at which the placeholder setting exists in the layout. The placeholder setting at that index will be removed.
-Instance <PlaceholderDefinition>
Specific instance of placeholder setting that should be removed. The instance could earlier be obtained through e.g. use of Get-PlaceholderSetting.
-Item <Item>
The item to be processed.
-Key <string>
Placeholder key filter - supports wildcards.
-Language <string[]>
Language that will be used as source language. If not specified the current user language will be used. Globbing/wildcard supported.
-Path <string>
Path to the item to be processed - can work with Language parameter to narrow the publication scope.
-PlaceholderSetting <Item>
Item representing the placeholder setting. If matching, the placeholder setting will be removed.
-UniqueId <string>
UniqueID of the placeholder setting to be removed.
Inputs
The input type is the type of the objects that you can pipe to the cmdlet.
Sitecore.Data.Items.Item
Notes
Help Author: Adam Najmanowicz, Michael West
Examples
EXAMPLE 1
Remove all placeholder settings for "Default" device
EXAMPLE 2
Remove all placeholder settings with the "content" key.
Related Topics
Last updated