# Workspace artifacts

**URL:** <https://www.finalbuilder.com/forums/t/workspace-artifacts/7338>\
**Category:** Discussion\
**Created:** [April 12, 2023, 1:22pm UTC](https://www.finalbuilder.com/forums/t/workspace-artifacts/7338 "2023-04-12T13:22:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![k3tchup](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/k3tchup/32/2162_2.png) [@k3tchup](https://www.finalbuilder.com/forums/u/k3tchup)\
**Post date:** [April 12, 2023, 1:22pm UTC](https://www.finalbuilder.com/forums/t/workspace-artifacts/7338/1 "2023-04-12T13:22:47Z")

</div>

Our configurations are multiplying and we are starting to run out of space… 🙂  
Usual configuration consists of “build stage” and “test stage”.  
Build stage is executed on “big” agent and test stage is executed on “small” agent.  
It is due to the fact that for build we need computing power and for tests we need time.

So, to make it work we copy build artifacts via workspace copy. Sometimes those artifacts are registered as artifacts, sometimes it’s just copy between agents.  
My problem is that some of those artifacts are heavy and are not registered as “artifacts”, so that they can be download after the build finished.  
Those artifacts are not removed on workspace cleanup, only after build is “old” enough and is remove completely, this takes a massive amount of space on Continua Server, and as such are not used nor accessible.

Is there a way to only keep registered artifacts and reports on Continua Server ?  
Is there a way to delete artifact on Server side after copy to agent ?

---

<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:** [April 13, 2023, 1:31am UTC](https://www.finalbuilder.com/forums/t/workspace-artifacts/7338/2 "2023-04-13T01:31:47Z")

</div>

Hi Michal,

> [@k3tchup](#):
>
> Is there a way to only keep registered artifacts and reports on Continua Server ?

You could create a new cleanup rule which cleans up Other Files only and set the Minimum and Maximum Builds to 0. This should cleanup up all files except registered artifacts from the server for all builds when the cleanup rules run (e.g. once a day).

 ![image](https://www.finalbuilder.com/forums/uploads/default/original/2X/a/a5e044af54727034fc678d6d4f81ee4709cfe401.png)

> [@k3tchup](#):
>
> Is there a way to delete artifact on Server side after copy to agent ?

We don’t currently have a means to delete server files, other than with the cleanup up rules. I guess what you would need is a delete/move workspace rule pattern. This is maybe something we can look into implementing.

Another option is the use a `<<` Agent to Server workspace rule at the end of the build to overwrite a server folder with an empty set of files. e.g.

`/TemporaryFiles << /*.nonexistingfile`

---

<div class="post-metadata">

**Author:** ![k3tchup](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/k3tchup/32/2162_2.png) [@k3tchup](https://www.finalbuilder.com/forums/u/k3tchup)\
**Post date:** [April 13, 2023, 6:38am UTC](https://www.finalbuilder.com/forums/t/workspace-artifacts/7338/3 "2023-04-13T06:38:13Z")

</div>

Clean up rule works like a charm and it is what I needed 🙂

---

<div class="post-metadata">

**Author:** ![k3tchup](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/k3tchup/32/2162_2.png) [@k3tchup](https://www.finalbuilder.com/forums/u/k3tchup)\
**Post date:** [April 13, 2023, 6:48am UTC](https://www.finalbuilder.com/forums/t/workspace-artifacts/7338/4 "2023-04-13T06:48:10Z")

</div>

OK, maybe there is one caveat 😃  
It seems that “Reports” are also deleted 😉

---

<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:** [April 13, 2023, 6:54am UTC](https://www.finalbuilder.com/forums/t/workspace-artifacts/7338/5 "2023-04-13T06:54:19Z")

</div>

OK, that’s something that we’ll need to look at. Meanwhile, can you add the report files as artifiacts?

---

<div class="post-metadata">

**Author:** ![k3tchup](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/k3tchup/32/2162_2.png) [@k3tchup](https://www.finalbuilder.com/forums/u/k3tchup)\
**Post date:** [April 13, 2023, 6:56am UTC](https://www.finalbuilder.com/forums/t/workspace-artifacts/7338/6 "2023-04-13T06:56:54Z")

</div>

some yes, some no  
one report is Bullseye generated coverage which has thousands of small files, I think that would break the “artifacts” tab on the build page 🙂

edit. I’ll try the clearing workspace rule.
