DirectoryAliases.

DeleteDirectory(ICakeContext, DirectoryPath, DeleteDirectorySettings) Method

Summary

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

Syntax

[CakeMethodAlias]
[CakeAliasCategory("Delete")]
public static void DeleteDirectory(this ICakeContext context, DirectoryPath path, DeleteDirectorySettings settings)

Examples

DeleteDirectory("./be/gone", 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.
path DirectoryPath The directory path.
settings DeleteDirectorySettings The delete settings.

Return Value

Type Description
void