Welcome to MSDN Blogs Sign in | Join | Help

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”);

 

 

Published Thursday, April 06, 2006 11:43 PM by Karthikeyan
Filed under:

Comments

# re: SharePoint : How to delete a sub folder in a document library programmatically

Tuesday, November 07, 2006 10:59 PM by Kevin Zhao

thx

Anonymous comments are disabled
 
Page view tracker