In this blog, we will look at steps to Create, Update, and Delete a SharePoint Generic list from a site using PnP PowerShell.
Connect to the SharePoint site
Connect-PnPOnline -URL https://softreetechnology.sharepoint.com/sites/TestsiteCollBibuti


Creating a Generic list
--> New-PnPList -Title TestGenList -Template GenericList

Updating the Generic list
--> Set-PnPList -Identity 'TestGenList' -Title 'NewTestGenList'

Created List

Deleting the Generic list
--> Remove-PnPList -Identity NewTestGenList


In the above write-up, I have explained all the PnP PowerShell commands for all operations, such as creating, updating, and deleting a SharePoint Generic list from SharePoint site programmatically.

Join the conversation! Your thoughts help the community grow.