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?
Maybe it could be done with a script, but in command line if you want to delete a directory from the zip file, make sure the directory is empty. If the directory is not empty, then first delete all the files from the directory. Then you can able to delete the directory.
From
man zip
: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:
Maybe it could be done with a script, but in command line if you want to delete a directory from the zip file, make sure the directory is empty. If the directory is not empty, then first delete all the files from the directory. Then you can able to delete the directory.