title: Delete multiple directories in python
body: <p>In python, I understand that I can delete multiple files with the same name using the following command for eg:</p>
  
  <pre><code>for f in glob.glob("file_name_*.txt"):
      os.remove(f)
  </code></pre>
  
  <p>And that a single directory can be deleted with <code>shutil.rmtree('/path/to/dir')</code> - and that this command will delete the directory even if the directory is not empty. On the other hand, <code>os.rmdir()</code> needs that the directory be empty.</p>
  
  <p>I actually want to delete multiple directories with the same name, and they are not empty. So, I am looking for something like 
  <code>shutil.rmtree('directory_*')</code></p>
  
  <p>Is there a way to do this with python?</p>