Deletes an existing folder

Namespace: DotNetNuke.Services.Assets
Assembly: DotNetNuke (in DotNetNuke.dll)

Syntax

C#
bool DeleteFolder(
	int folderId,
	bool onlyUnlink,
	ICollection<IFolderInfo> nonDeletedSubfolders
)
Visual Basic
Function DeleteFolder ( 
	folderId As Integer,
	onlyUnlink As Boolean,
	nonDeletedSubfolders As ICollection(Of IFolderInfo)
) As Boolean

Parameters

folderId
Type: System..::..Int32
The ide of the folder to delete
onlyUnlink
Type: System..::..Boolean
In case of a remote folder, specifies that the folder should be unlinked, not deleted
nonDeletedSubfolders
Type: System.Collections.Generic..::..ICollection<(Of <(<'IFolderInfo>)>)>
The list of subfolders that could not be deleted, for example due to permissions

Return Value

True if the folder has been correctly deleted, false otherwise

See Also