Quantcast
Channel: SharePoint 2013 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 21070

How to remove Drop Off Library and Hold Reports libraries from sites?

$
0
0

Hello,

How to remove Drop Off Library and Hold Reports libraries from sites?

Not sure how to remove Hold Reports?

I turned off content organizer, but drop off libraries are still there.

 I tried running this script, but did not remove them.

if((Get-PSSnapin | Where {$_.Name -eq "Microsoft.SharePoint.PowerShell"}) -eq $null) {

Add-PSSnapin Microsoft.SharePoint.PowerShell;
}

Get-SPSite -Identity http://site | Get-SPWeb -Limit ALL | ForEach-Object { 

Disable-SPFeature –Identity DocumentRouting –url $_.Url –Confirm:$false

$dropOffLibrary = $_.Lists["Drop Off Library"]

$dropOffLibrary.AllowDeletion = "True"
$dropOffLibrary.Update()
$dropOffLibrary.Delete()

}

Can you offer some suggestions?


Paul


Viewing all articles
Browse latest Browse all 21070


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>