Deletes the portal.

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

Syntax

C#
public static string DeletePortal(
	PortalInfo portal,
	string serverPath
)
Visual Basic
Public Shared Function DeletePortal ( 
	portal As PortalInfo,
	serverPath As String
) As String

Parameters

portal
Type: DotNetNuke.Entities.Portals..::..PortalInfo
The portal.
serverPath
Type: System..::..String
The server path.

Return Value

If the method executed successful, it will return NullString, otherwise return error message.

See Also