Deletes a tab permanently from the database

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

Syntax

C#
void DeleteTab(
	int tabId,
	int portalId,
	bool deleteDescendants
)
Visual Basic
Sub DeleteTab ( 
	tabId As Integer,
	portalId As Integer,
	deleteDescendants As Boolean
)

Parameters

tabId
Type: System..::..Int32
The tab id.
portalId
Type: System..::..Int32
The portal id.
deleteDescendants
Type: System..::..Boolean
if set to true will delete all child tabs.

See Also