Summary
Deletes the specified files.
- Namespace
- Cake
.Common .IO - Containing Type
- FileAliases
Syntax
[CakeMethodAlias]
[CakeAliasCategory("Delete")]
public static void DeleteFiles(this ICakeContext context, IEnumerable<FilePath> filePaths)
Examples
var files = GetFiles("./destination/Cake.*");
DeleteFiles(files);
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. |
filePaths | IEnumerable |
The file paths. |
Return Value
Type | Description |
---|---|
void |