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
CRUD Operations On SharePoint List Using PnP PowerShell
CRUD Operations On SharePoint List Using PnP PowerShell

Creating a Generic list

--> New-PnPList -Title TestGenList -Template GenericList
CRUD Operations On SharePoint List Using PnP PowerShell

Updating the Generic list

--> Set-PnPList -Identity 'TestGenList' -Title 'NewTestGenList'
CRUD Operations On SharePoint List Using PnP PowerShell

Created List

CRUD Operations On SharePoint List Using PnP PowerShell

Deleting the Generic list

--> Remove-PnPList -Identity NewTestGenList
CRUD Operations On SharePoint List Using PnP PowerShell
CRUD Operations On SharePoint List Using PnP PowerShell
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.