bamboo server huge temporary directory
Asked by Nikola_Toshkov:

Hi can someone explain why is the

Temporary directory C:\\Atlassian-bamboo\\Bamboo\\temp grown to about 180GB ?

And how safe is it to delete it completely currently finding mixed opinion on the case...


Answers:
author: Eduardo Alvarenga
body: Hello [@Nikola_Toshkov](/t5/user/viewprofilepage/user-id/5562019)

Welcome to **Atlassian Community**!

Large temporary directories are a symptom of builds running in local agents, which may be using the temporary folder to store data that is not being removed after builds are finished.

It is usually safe to stop the application and clean up that folder, but be mindful that your builds may require content that is present in that location and force that to be recreated, which may impose a slowdown on your pipelines.

Cheers,

Eduardo Alvarenga  
Atlassian Support APAC

**--please don't forget to Accept the answer if the reply is helpful--**

comments: author: Nikola_Toshkov
body: Honestly very green at this, is there something i can ask the developers to add to their plans to clean up after their builds, or something i can change in the bamboo configuration ?


author: Shashank Kumar
body: Hello Nikola,

Welcome to Atlassian Community.

Bamboo places some temporary files in this location for example during the source code checkout task it will create a temporary .bat or .sh file and it would be removed post the task completion.

Ideally this location should not contain files amounting to 180 GB, in my opinion you can cleanup this directory, but make sure you have stopped your Bamboo Instance while you are doing it.

BTW have you looked at the content of these files and when were these created/modified?

There was a feature request raised to clean this up automatically but it was never implemented, <https://jira.atlassian.com/browse/BAM-8521>

Regards,

Shashank Kumar

**\*\*please don't forget to Accept the answer if your query was answered\*\***

comments: author: Nikola_Toshkov
body: Hi yes most of them are \~18mb, folders named "binary-number" -\> binary with a folder plugins with few .jar from pluings xray and jira and allure reports?

Allure Report {#toc-hId--349710130}
-----------------------------------

Configure Allure Reporting {#toc-hId-2137802703}
------------------------------------------------

in the config all are checked\[\\/\]  
Download if no executable present  
Enable report custom logo  
Build Allure for all builds by default


author: Shashank Kumar
body: Hello Nikola,

This is coming from the External plugin Installed in your Bamboo Instance, [https://marketplace.atlassian.com/apps/1217177/allure-report-for-bamboo?tab=overview\&hosting=datacenter](https://marketplace.atlassian.com/apps/1217177/allure-report-for-bamboo?tab=overview&hosting=datacenter).

Probably you'll need to check the settings for this plugin and check why the files are being generate in /tmp location and can it be changed.

Regards,

Shashank kumar


author: Nikola_Toshkov
body: A little digging turns out it has about 150k folders \~17mb containing plugins .jar not just allure, still looking around at the settings what is causing it :![plugins.png](https://community.atlassian.com/t5/image/serverpage/image-id/341640iA35A5353F550E741/image-size/large?v=v2&px=999 "plugins.png")