# Delete Tree and subversion

**URL:** https://www.finalbuilder.com/forums/t/delete-tree-and-subversion/1244
**Category:** Discussion
**Created:** [June 24, 2009, 5:14am UTC](https://www.finalbuilder.com/forums/t/delete-tree-and-subversion/1244 "2009-06-24T05:14:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![rasmusw](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/46a35a/32.png) [@rasmusw](https://www.finalbuilder.com/forums/u/rasmusw)
#### Post date: [June 24, 2009, 5:14am UTC](https://www.finalbuilder.com/forums/t/delete-tree-and-subversion/1244/1 "2009-06-24T05:14:34Z")

</div>

I am having a problem with a build script which does the following:

1. Delete tree buildfolder
2. Create buildfolder
3. Subversion checkout
4. build

The first time it runs, everything works. Subsequent times, the Delete tree action fails with error code 5 - access is denied.

The folder inherits permissions from its parent, and I have also verified manually, that "domain users" have full controll.

The Sysinternals filemon tool suggests that delete fails on the file ".svn\all-wcprops". The permissions on that file are the same:&nbsp;"domain users" have full control.

When deleting the folder using Windows Explorer, everything works fine.

The weird thing is that when I use subversion export instead of checkout, it works. But of course, a checkout doesn't create the .svn folders and subversion files.

I have tried a reboot to see if a different process should have the file open, but no success.

I am using "sliksvn" as the subversion tool.

Does anybody have any tips or suggestions?

---

<div class="post-metadata">

### Author: ![rasmusw](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/r/46a35a/32.png) [@rasmusw](https://www.finalbuilder.com/forums/u/rasmusw)
#### Post date: [June 24, 2009, 7:42am UTC](https://www.finalbuilder.com/forums/t/delete-tree-and-subversion/1244/2 "2009-06-24T07:42:05Z")

</div>

Found the problem now. The file is read-only.

With the delete read only and hidden directories options, it works fine.

---

<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: [June 25, 2009, 1:30am UTC](https://www.finalbuilder.com/forums/t/delete-tree-and-subversion/1244/3 "2009-06-25T01:30:29Z")

</div>

Hi Rasmus,   
  
 Thanks for letting us know how you resolved the issue.   
  
 Regards,   
 Paul.
