# Delete Tree Error

**URL:** https://www.finalbuilder.com/forums/t/delete-tree-error/1067
**Category:** Discussion
**Created:** [January 6, 2009, 12:07pm UTC](https://www.finalbuilder.com/forums/t/delete-tree-error/1067 "2009-01-06T12:07:22Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![jonathanl](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/85e7bf/32.png) [@jonathanl](https://www.finalbuilder.com/forums/u/jonathanl)
#### Post date: [January 6, 2009, 12:07pm UTC](https://www.finalbuilder.com/forums/t/delete-tree-error/1067/1 "2009-01-06T12:07:22Z")

</div>

I've been using Finalbuilder for sometime without problem.

Since the new year I now get the following error message when using 'Delete tree'

Error deleting file/folder: System Error. Code: 5.

Access is denied

Unable to delete directory : c:\s\_BuildImages\SoftEdit\

Is this a general problem or how would I find a fix? I'm using Windows XP with all the latest upgrades.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [January 6, 2009, 12:32pm UTC](https://www.finalbuilder.com/forums/t/delete-tree-error/1067/2 "2009-01-06T12:32:50Z")

</div>

Hi Jon   
  
 Which version/build of FinalBuilder are you using? I made some changes to work around that issue late last year. This build from today has those changes included :   
  
 [https://www.finalbuilder.com/downloads/finalbuilder/620/FB620\_1232.exe](https://www.finalbuilder.com/downloads/finalbuilder/620/FB620_1232.exe)   
  
 FWIW, the changes were to add a slight delay after deleting a sub folder before attempting to delete the parent folder. It seems the windows api doesn’t keep up with itself when deleting folders recursively. This also started happening more often with later XP updates, I never did figure out which update caused the problem though… far too many to test!

---

<div class="post-metadata">

### Author: ![jonathanl](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/j/85e7bf/32.png) [@jonathanl](https://www.finalbuilder.com/forums/u/jonathanl)
#### Post date: [January 6, 2009, 1:14am UTC](https://www.finalbuilder.com/forums/t/delete-tree-error/1067/3 "2009-01-06T01:14:43Z")

</div>

Hello Vincent,

I'm tracking this down and and now realise FinalBuilder isn't the cause.

I added some additional files with long filenames and it appears an additional program I'm using is also having problems.

The program is xrdw (eXtended Remove _Directory)_

_Jon_
