Clean up rules of a project in TeamCity
Clean up process runs periodically on TeamCity server. Clean-up process helps us optimize the server performance. By default, when the clean up process runs, it deletes artifacts of builds.
But if you want, you can customize the default behavior of clean up process for specific project as shown in below image.