You can configure TeamCity to remove artifacts after the nth subsequent build - set this value to 1, and it will not be much for you. See “Administration in the cleanup history of assembly history” section.
And the URL-independent version of the version should probably be the .lastFinished that you mention.
source
share