In this blog, we will see how we can add a custom content type in a SharePoint site using PnP PowerShell. Also, we will see how we can get a particular content type and remove it from the SharePoint site using PnP PowerShell.

Add Custom Content Type in SharePoint site

  • The following command snippet will help you to create the new content type in SharePoint site.
    1. Add-PnPContentType -Name "Custom Content Type" -Description "Use for Custom projects" -Group "Custom Content Types"

Remove Content Type from SharePoint site