# Question about deleting directories

**URL:** https://www.finalbuilder.com/forums/t/question-about-deleting-directories/431
**Category:** Discussion
**Created:** [April 17, 2007, 6:22am UTC](https://www.finalbuilder.com/forums/t/question-about-deleting-directories/431 "2007-04-17T06:22:08Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![allen](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/bbce88/32.png) [@allen](https://www.finalbuilder.com/forums/u/allen)
#### Post date: [April 17, 2007, 6:22am UTC](https://www.finalbuilder.com/forums/t/question-about-deleting-directories/431/1 "2007-04-17T06:22:08Z")

</div>

I need to delete all the CVS sub dirs after I do a cvs checkout (as part of packaging the source for our source customers).&nbsp; What is the best way to go about this?&nbsp; I don't see a recursive delete where I can pattern match.&nbsp; I tried using filesets but that doesn't seem to be working (is it just for files and not dirs?).

any ideas?

thanks

&nbsp;

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [April 17, 2007, 8:56am UTC](https://www.finalbuilder.com/forums/t/question-about-deleting-directories/431/2 "2007-04-17T08:56:35Z")

</div>

Hi Allen,

&nbsp;

Attached is FinalBuilder project that uses a Folder Iterator to list all the directories in a specified path, checking to see if it contains a CVS folder, removing it if it does.

Hope this helps,

Paul.

[CVSRemover.fbz5](https://www.finalbuilder.com/forums/uploads/default/original/2X/c/cc71be784beea5b0105377b6e8f2e11921da90f3.fbz5) (1.976 KB)

---

<div class="post-metadata">

### Author: ![allen](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/bbce88/32.png) [@allen](https://www.finalbuilder.com/forums/u/allen)
#### Post date: [April 18, 2007, 4:40am UTC](https://www.finalbuilder.com/forums/t/question-about-deleting-directories/431/3 "2007-04-18T04:40:56Z")

</div>

great, i’ll give that a shot thanks.  
  
Perhaps some day this could be an option on the delete directory(s) ? All you’d really need to do is ad a recursive checkbox and allow a matching argument.
