How do I delete a directory from a zip file using a bash script?

From man zip:

      zip -d foo foo/tom/junk foo/harry/\* \*.o

will  remove  the  entry  foo/tom/junk,  all  of  the  files  that  start  with
foo/harry/,  and  all  of  the files that end with .o (in any path).

If that doesn't help, can you provide some details about the commands you've tried and the output?


If you want to delete all files from a specific dir, you could do this:

zip --delete file.zip "assets/*"