Summary
Cleans the specified directory.
Syntax
[CakeMethodAlias]
[CakeAliasCategory("Clean")]
public static void CleanDirectory(this ICakeContext context, DirectoryPath path, Func<IFileSystemInfo, bool> predicate)
Examples
CleanDirectory("./src/Cake.Common/obj", fileSystemInfo=>!fileSystemInfo.Hidden);
Attributes
Parameters
| Name |
Type |
Description |
| context |
ICakeContext |
The context. |
| path |
DirectoryPath |
The directory path. |
| predicate |
Func<IFileSystemInfo, bool> |
Predicate used to determine which files/directories should get deleted. |
Return Value