Forum Discussion

null null's avatar
null null
Iron Contributor
Jan 08, 2019

PowerShell to remove client webpart Instance ID not found with Get-PnPClientSideComponent

 

Hi

I am trying to remove a web part from the home page of a newly created site using powershell.

 

The cmd let accepts InstanceId . So in order to do that, we have to ,find out the instance id by running

 

Get-PnPClientSideComponent -Page Home 

 

However, it displays blank. So, i go to the page manually and click on edit and then run the command, we get the list of client web parts.

 

How do i achieve this without having to manually edit the page.

 

Thanks

No RepliesBe the first to reply

Resources