title: How to delete old artifacts in maven local repository in jenkins
body: <p>I have a .m2/repository directory which has a lot of old artifacts. Is there a way to clean up the .m2/repository folder with a script or any plugins. </p>
  
  <p>Also I would like to tell that the I want to delete the artifacts that are older than 14 days. The .m2/repository folder has no of subfolders.</p>
  
  <p>Any lead would be highly appriciated</p>