Delete the child portal folder and try to remove its parent when parent folder is empty.

Namespace: DotNetNuke.Entities.Portals
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
public static void DeletePortalFolder(
	string serverPath,
	string portalFolder
)
Visual Basic
Public Shared Sub DeletePortalFolder ( 
	serverPath As String,
	portalFolder As String
)

Parameters

serverPath
Type: System..::..String
the server path.
portalFolder
Type: System..::..String
the child folder path.

See Also