title: Delete old .apk from outputs folder when new .apk is generated via Android studio
body: <p>I have a functionality which generates .apk with a custom name. 
  (app name + date + time)</p>
  
  <p>in <code>gradle</code> file </p>
  
  <pre><code>def getTimestamp() {
      def date = new Date()
      return date.format('_dd-yyyy-MM_HH-mm')
  }
  </code></pre>
  
  <p>and applying of name:</p>
  
  <pre><code>defaultConfig {
      archivesBaseName = "CUSTOM_NAME_$versionName" + getTimestamp()
  }
  </code></pre>
  
  <p>It works fine, but all generated files have a unique name and do not deleted from <code>outputs/apk/debug/</code> folder. 
  Can you please propose a way for automating of clean up for this folder. I wish only latest file always stays in the folder. Thanks</p>