using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.SharePoint;
namespace DropOffLibrary{
class Delete
{
static void Main(string[] args)
{
using (SPSite site = new SPSite("http://serverName:2011/"))
{
using (SPWeb web = site.OpenWeb())
{
SPList list = web.GetList("http://serverName:2011/DropOffLibrary/");
list.AllowDeletion = true;
list.Update();
}
}
}
}