We have a self-hosted TFS build agent which has run out of space so I would like to delete as many of the folders under the agent\_work
and agent_dply\_work
folders as possible, where they are > 1 month old.
Is this safe to do?
I have found this post on setting up cleaning, which I will certainly do.
Also found this post on cleaning the _work
folder which recommends renaming, then deleting the whole folder, but not parts of it.
What I can't find is the maintenance settings
for the agent pool, as described in this post. I'm wondering if this is in some control panel on the actual agent, because it does not appear to be in our settings. I looks for it under Project > Project Settings > Agent pools, for example:
https://COMPANY.visualstudio.com/PROJECT/_settings/agentqueues