Exago .NET API Documentation
DeleteFolder Method
Example 
WebReports.Api.ReportMgmt Namespace > ReportMgmtBase Class : DeleteFolder Method
The path from the root to the folder to delete.
Delete an empty folder from the Report Tree.
Syntax
public void DeleteFolder( 
   System.string folderName
)

Parameters

folderName
The path from the root to the folder to delete.
Exceptions
ExceptionDescription
A StorageMgmtException will be thrown if the specified folder is not empty when attempting to delete it.
A System.Exception will be thrown if the filder cannot be found to delete.
Example
Delete the Training Materials\Obsolete Materials folder, after first checking it exists
string oldFolder = "Training Materials\\Obsolete Function";
if (api.ReportManagement.ExistFolder(oldFolder))
{
	api.ReportManagement.DeleteFolder(oldFolder);
}
See Also

Reference

ReportMgmtBase Class
ReportMgmtBase Members
ExistFolder Method