SharePoint : How to delete a sub folder in a document library programmatically
Unfortunately the sample code to delete the subfolder from the document library is not available in the SharePoint SDK. The sample code is as follows.
SPWeb web = new SPSite("site url").OpenWeb();
web.Folders[“Document library name”].SubFolders.Delete(“Folder Name”);
Comments
Anonymous
November 07, 2006
thxAnonymous
September 27, 2010
Thanks ,helped me to save alot my time !!!!