# Agent clean up

**URL:** https://www.finalbuilder.com/forums/t/agent-clean-up/5021
**Category:** Discussion
**Created:** [July 26, 2013, 9:00am UTC](https://www.finalbuilder.com/forums/t/agent-clean-up/5021 "2013-07-26T09:00:39Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)
#### Post date: [July 26, 2013, 9:00am UTC](https://www.finalbuilder.com/forums/t/agent-clean-up/5021/1 "2013-07-26T09:00:39Z")

</div>

Now having my project for while, the agent has around 1800 builds for our main configuration, but they require really a lot of disk space. as i can see, the whole sources are still existing.

is there a way to clean them up, too? found anything in the clean up policies.

---

<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: [July 26, 2013, 9:47am UTC](https://www.finalbuilder.com/forums/t/agent-clean-up/5021/2 "2013-07-26T09:47:35Z")

</div>

The agent is supposed to clean up the folders, we’ll take a look and see if there is some reason they are not cleanining up. If the agent isn’t running any builds then it’s safe for you to manually delete the folders.

---

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [July 28, 2013, 12:16pm UTC](https://www.finalbuilder.com/forums/t/agent-clean-up/5021/3 "2013-07-28T12:16:31Z")

</div>

Follow on this topic, I’ve found that the Clean-up process seems to do an ok job on the CI Server, but the agents PC’s that include “failed builds” are not cleaned up. My Developer PC Agent has a c:\Continua\_WS\WS\ folder with 353k files and 80k folders worth 28GB of SSD disk space. Fortunately I’m only at 608 builds via Continua, so a fair bit behind Christians environment.

---

<div class="post-metadata">

### Author: ![christian.leh](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/c/67e7ee/32.png) [@christian.leh](https://www.finalbuilder.com/forums/u/christian.leh)
#### Post date: [July 28, 2013, 1:10am UTC](https://www.finalbuilder.com/forums/t/agent-clean-up/5021/4 "2013-07-28T01:10:26Z")

</div>

yeah thats true. additionally, builds having stages that “could” get promoted manually will also not be cleaned up. for sure, this might be ok, depending on the stages content.

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [July 29, 2013, 1:54am UTC](https://www.finalbuilder.com/forums/t/agent-clean-up/5021/5 "2013-07-29T01:54:40Z")

</div>

Hi,

We intentionally don't clean up workspaces until a build completes successfully so that it is possible to check that the files have been copied to the right place and&nbsp;figure out why a build has failed.

This is ok with the server workspace as we can schedule a clean-up process. There is however&nbsp;no clean-up schedule for agent workspaces so we will add a new option tot he stage options, so you can choose whether to you want Continua to clean up the agent when a stage fails.&nbsp;

We hope to have this implemented for the next build.

---

<div class="post-metadata">

### Author: ![Sparky](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/sparky/32/10_2.png) [@Sparky](https://www.finalbuilder.com/forums/u/Sparky)
#### Post date: [July 31, 2013, 9:32am UTC](https://www.finalbuilder.com/forums/t/agent-clean-up/5021/6 "2013-07-31T09:32:12Z")

</div>

Hi,

The latest build 1.0.0.2352 has new Agent Workspace Cleanup options on the Cleanup pages. Existing configurations will continue to clean up the agent workspaces only for successful builds until you edit this page. New configurations will have all options checked by default.&nbsp;
