title: How to clean a particular directory before each build starts in jenkins?
body: <p>I am using <strong>jenkins</strong> with <strong>hudson cli</strong> through java. I <strong>want clean a particular directory</strong> before each build. Any idea ?  I have provided the maven command <strong>clean package</strong> which clean target folder for each build. What i want is i want to clean some other directory before each build. How to do this ?</p>
  
  <p>In <strong>jenkins</strong> i specified <strong>URL of maven project</strong> , Which ll <strong>download  files to workspace</strong> when building. When i give <strong>clean package command</strong>, it <strong>clears target</strong> folder every time when building. There is <strong>another folder parallel to target folder</strong>. i want to <strong>clear</strong> that <strong>folder which is inside maven project</strong>.</p>