One of my client requested a settings in SharePoint 2010 to avoid accidental deletion of Lists. Indeed we can recover it from Recycle Bin within 30 days, but they need to avoid deletion. Alternatively we can make a permission settings to avoid deletion. Let’s see how to do this using PowerShell.
Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue
$web = Get-SPWeb -Identity 'http://domain.com/windows_test'
$list = $web.Lists['PowerShell']
$list | GM
AllowDeletion is a […]