Summary
Cleans the directories matching the specified pattern.
Cleaning the 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, GlobPattern pattern, CleanDirectorySettings settings)
Examples
CleanDirectories("./src/**/bin/debug", new CleanDirectorySettings() { Force = true });
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. |
| pattern | GlobPattern | The pattern to match. |
| settings | Clean |
The clean settings. |
Return Value
| Type | Description |
|---|---|
| void |
