title: Remove all images from docx files
body: <p>I've searched the documentation for <code>python-docx</code> and other packages, as well as stack-overflow, but could not find how to remove all images from <code>docx</code> files with python.</p>
  
  <p>My exact use-case: I need to convert hundreds of word documents to "draft" format to be viewed by clients. Those drafts should be identical the original documents but all the images must be deleted / redacted from them.</p>
  
  <p>Sorry for not including an example of things I tried, what I have tried is hours of research that didn't give any info. I found this question on how to extract images from word files, but that doesn't delete them from the actual document: <a href="https://stackoverflow.com/questions/44435595/extract-pictures-from-word-and-excel-with-python">Extract pictures from Word and Excel with Python</a></p>
  
  <p>From there and  other sources I've found out that <code>docx</code> files could be read as simple zip files, I don't know if that means that it's possible to "re-zip" without the images without affecting the integrity of the <code>docx</code> file (edit: simply deleting the images works, but prevents <code>python-docx</code> from continuing to work with this file because of missing references to images), but thought this might be a path to a solution.</p>
  
  <p>Any ideas?</p>