Summary
Cleans the specified directories.
Cleaning a directory will remove all its content but not the directory itself.
- Namespace
- Cake
.Common .IO - Containing Type
- DirectoryAliases
Syntax
[CakeMethodAlias]
[CakeAliasCategory("Clean")]
public static void CleanDirectories(this ICakeContext context, IEnumerable<DirectoryPath> directories)
Examples
var directoriesToClean = GetDirectories("./src/**/bin/");
CleanDirectories(directoriesToClean);
Attributes
Type | Description |
---|---|
Cake |
An attribute used to mark script method aliases. |
Cake |
An attribute used for documentation of alias methods/properties. |
Parameters
Name | Type | Description |
---|---|---|
context | ICakeContext | The context. |
directories | IEnumerable |
The directory paths. |
Return Value
Type | Description |
---|---|
void |