DirectoryAliases.

DeleteDirectories(ICakeContext, IEnumerable<string>, DeleteDirectorySettings) Method

Summary

Deletes the specified directories.
Namespace
Cake.Common.IO
Containing Type
DirectoryAliases

Syntax

[CakeMethodAlias]
[CakeAliasCategory("Delete")]
public static void DeleteDirectories(this ICakeContext context, IEnumerable<string> directories, DeleteDirectorySettings settings)

Examples

var directoriesToDelete = new []{
    "be",
    "gone"
};
DeleteDirectories(directoriesToDelete, new DeleteDirectorySettings {
    Recursive = true,
    Force = true
});

Attributes

Type Description
CakeMethodAliasAttribute An attribute used to mark script method aliases.
CakeAliasCategoryAttribute An attribute used for documentation of alias methods/properties.

Parameters

Name Type Description
context ICakeContext The context.
directories IEnumerable<string> The directory paths.
settings DeleteDirectorySettings The delete settings.

Return Value

Type Description
void