Open pavan2920 opened 6 years ago
As far as I can see there is a remove() function built into the @pnp/sp js package. Reference: https://github.com/pnp/pnpjs/blob/dev/packages/sp/src/clientsidepages.ts
So steps you need to take to achieve your solution:
This should work (not tested though).
Hi Team,
I have a requirement and looking for the suggestion/solution for the same.
I have a spfx webpart, which i have added in Home.aspx(modern page). This webpart has a link, on click of this link i want to Delete existing webpart(listview WP) from the current page.
Could any one suggest me how can i do the same thing.