Deleting list or libraries in SharePoint where delete option is not there

In SharePoint, some lists/libraries deletion option could not be found in the settings. Example: Documents, Style Library etc.,

Their delete option are kept as false by default. To enable Delete option, following script need to be executed,

$web = Get-SPWeb <<Site Url>>
$list = $web.Lists["Documents"]
$list.AllowDeletion = $True
$list.Update()

Comments

Popular posts from this blog

Run Powershell script on Remote Computer/Server

Power BI Refresh Issue: unable to convert the value '' from the source data type 'VT_BSTR' to the expected data type 'VT_I8.

SPDActivities - DP.SharePoint.Workflow - Workflow failed to run