Table of Contents

Method DeleteAllContents

Namespace
Alternet.Common
Assembly
Alternet.Common.v10.dll

DeleteAllContents(string)

Deletes all contents of the specified folder, including files and subdirectories.

public static bool DeleteAllContents(string pathToFolder)

Parameters

pathToFolder string

The path to the folder whose contents will be deleted.

Returns

bool

true if the operation succeeds or the folder does not exist; false if an exception occurs during the operation.