I am trying to zip a given directory and delete the directory right afterwards. Therefore I am using the shutil module.
shutil
The method that I implemented to do s