title: How to delete local directory with ansible
body: <p>I have to make delete some directory and create them on local before copy to the remote. Is there anyway to delete and create locally?</p>
  
  <p>Currently I'm using 'command'</p>
  
  <pre><code>command: rm -r directory
  </code></pre>
  
  <p>But warning shows as </p>
  
  <pre><code>Consider using file module with state=absent rather than running rm
  </code></pre>
  
  <p>Is there any options we can use for local folder changes?</p>