title: How do I delete or replace a file in a zip archive?
body: <p>I'm creating a program in Python which downloads a set of files and puts them into an archive with the zipfile module.</p>
  
  <p>I already found out how to append to the archive, but there are cases where the files in the archive already exist and should be overwritten.</p>
  
  <p>Currently, if I append an already existing file to the archive I get a duplicate.</p>
  
  <p>Does anyone know how to delete a file in an archive?</p>