Advertisement
Having a Corrupted list on our SharePoint site,we tried to delete the list through GUI but i am unable to delete that particular list.
In most of the cases Power Shell is with us to do all these activities.
In my case i am using "Get-SPWeb" to access the particular site in to an variable and using"lists" accessing the particular list with name,"AllowDeletion" is used to allow to delete and updating.
using Power Shell we can delete the List
$web = Get-SPWeb -Identity "Your SiteName"
$list = $web.lists["Your list name"]
$list.AllowDeletion = $true
$list.Update()
$list.Delete()
Check once script runs completed successfully,list will be deleted.
In most of the cases Power Shell is with us to do all these activities.
In my case i am using "Get-SPWeb" to access the particular site in to an variable and using"lists" accessing the particular list with name,"AllowDeletion" is used to allow to delete and updating.
using Power Shell we can delete the List
$web = Get-SPWeb -Identity "Your SiteName"
$list = $web.lists["Your list name"]
$list.AllowDeletion = $true
$list.Update()
$list.Delete()
Check once script runs completed successfully,list will be deleted.
0 comments:
Post a Comment