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

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

Volatile function error for SharePoint calculated field current date