I have 300 files in my document library and I need to delete one of them, I cant use the delete out of box option and I though I can use PowerShell to force it. Can anyone have any idea about this:
this one delete all files in library:
$web = get-spweb ""
$doclibsname = ""
$list = $web.lists | where {$_.title -eq $DocLibsname}
$items = $list.items
foreach ($items in $items)
{
$list.getitembyid($item.id).delete()
}
foreach
. Change($items in $items)
to($item in $items)