Summary
Cleans the specified directories.
Cleaning a directory will remove all its content but not the directory itself.
Syntax
[CakeMethodAlias]
[CakeAliasCategory("Clean")]
public static void CleanDirectories(this ICakeContext context, IEnumerable<string> directories)
Examples
var directoriesToClean = new []{
"./src/Cake/obj",
"./src/Cake.Common/obj"
};
CleanDirectories(directoriesToClean);
Attributes
Parameters
Name |
Type |
Description |
context |
ICakeContext |
The context. |
directories |
IEnumerable<string> |
The directory paths. |
Return Value