I'm trying to delete 7 old no more used lists from a Web. In the list settings there is no delete option. Trying to delete it using SharePoint Designer, PowerShell and SharePoint Manager I get the error "This List can't be deleted".

How can I delete them?

Some info on the farm:
The OnPremise farm has been built by my predecessor, I migrated it to 2013 and last year to 2016. I don't know if it started from 2007 or 2010, but I see that the main default.aspx is dated 27.05.2010.

Of course, I'm not talking about syste libraries. These have been created by my predecessor.

  • Which names have these lists or document libraries? Aren'T they system based? – Zdeněk Vinduška Feb 19 '19 at 15:04
  • I added a comment – Emaborsa Feb 20 '19 at 7:21
  • no matter you find solution by McShea – Zdeněk Vinduška Feb 20 '19 at 7:28

There is a flag on a list called AllowDeletion. If it's set to false, you will get this error when trying to delete. You need to change that flag to true.

Unfortunately, this flag is not exposed through the list settings page, or SharePoint Designer. There used to be a tool called SharePoint Manager on codeplex that would allow you to set this, but it doesn't look like there is a version for SharePoint 2016.

You can do it through Powershell:

#Load SharePoint PowerShell Snapin
if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null) {
    Add-PSSnapin "Microsoft.SharePoint.PowerShell"

$Web = Get-SPWeb "http://foo.com/website"

$List = $Web.Lists["LibraryName"] 
$List.AllowDeletion = $TRUE 

Ref: Fixing the AllowDeletion flag on a SharePoint list or library

| improve this answer | |
  • As mentioned in the question I already know SharePoint Manager and it works fine also on 2016. Didn't know about the flag, the lists had it on false, by changing them on true I have been able to remove the lists. Thanks. – Emaborsa Feb 20 '19 at 7:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.