ES3.DeleteDirectory

public static void DeleteDirectory(string directoryPath, ES3Settings settings)

Description

Deletes a directory and it’s contents.

If the directory does not exist, no exceptions will be thrown.

Parameters

[table th=”0″]directoryPath,”[Optional] The relative or absolute path of the directory we want to delete.”

settings,”[Optional] The settings we want to use to override the default settings.”[/table]

Examples

C#

// Deletes directory folder2.
ES3.DeleteDirectory("folder1/folder2/");

JS

// Deletes directory folder2.
ES3.DeleteDirectory("folder1/folder2/");