Export to GitHub

treetrim - DeleteFromDiskPlugin.wiki


Introduction

This plugin deletes files or folders from the disk. Files and folders matching the patterns in the settings file will be deleted.

If you have any suggestions for what files or folders this plugin should recognise and delete, please visit this page.


Command line

Examples

TreeTrim.Console c:\mytree -deleteFromDisk

Deletes the files and folders specified in the settings.

TreeTrim.Console c:\mytree -workingCopy -deleteFromDisk

Makes a working copy and deletes the files and folders specified in the settings.

Task Parameters

This plugin doesn't take any parameters. Everything is specified in the settings file.


Settings file

Example

```

<!-- 
    KEEP THE CONTENTS OF THE NODES BELOW ON THE SAME LINE AS THE NODE.
    ANY WHITE SPACE WILL BUGGER UP THE EXPRESSIONS.
-->

<FilePattern>\.scc$|\.vssscc$|\.user$|\.vspscc$|\.suo$</FilePattern>
<FolderPattern>^bin$|^obj$|^Debug$|^Release$|^_ReSharper\..*$|^_sgbak$</FolderPattern>

```

Fields

  • FilePattern This mandatory field specifies patterns that will identify what files to delete.
  • FolderPattern As above, but for folders.