title: Jenkins - Deleting artifacts automatically
body: <p><strong>JENKINS</strong></p>
  
  <p>I am noticing that the every time I run one of my jobs in Jenkins, there are <strong>two</strong> files created in the <strong>/workspace/build/distributions</strong> dir. The two files have the extensions of <em>.tar</em> and <em>.tgz.</em> Every time, I run the job, another set of these files are created. So, if I run the job 3 times, there will be 6 files all together. I have noticed that during the dependency check phase, these artifacts slow things down. Therefore, I wanted to remove them automatically before each time this job runs. I have attempted the configs in the image below. In addition, I have tried the workspace cleanup plugin and that completely deleted the workspace. That is definitely not what I wanted. </p>
  
  <p>Therefore, what would be the best way to go about this. </p>