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