Remove all picture Metadata except for one

I need to remove all metadata from the pictures in one folder, except for the date it was taken.

Is there a way to remove all metadata with an exception?

The current command I use is:

exiftool -all= *.jpg

I tried to read the man for exiftool but I'm still having trouble with the command.

Thanks!


Solution 1:

Figured it out finally:

exiftool -all= -tagsFromFile @ -*date* *.jpg