Delete all metadata except EXIF

Basically, the title says for itself. I have a huge archive of photos that may contain uncommon metadata I’m not aware of. The only thing I want to preserve is the EXIF, and anything else should be deleted. Since I’m processing photos in batches (depending on different inputs), not all at once, this is sort of a repetitive task; thus, I would like to minimize manual actions to the absolute minimum.

I don’t see any easy way to achieve this. Presets are useless for the given task as only one “edit tag” action can be added at a time, and there are many thousands of them. Another option would be, for every batch, check what metadata photos have; if there is uncommon metadata, then export EXIF, delete all metadata, and import EXIF back. This doesn’t look as optimal.

Any advices?

A possible solution is to use the following steps:

  1. Navigate to Main Menu Bar > Tags > Delete Metadata > Choose Streams.
  2. Select all streams by pressing Cmd-A and then dragging and dropping them.
  3. Exclude Exif data if you want to keep it.
  4. Finally, apply the changes.

Here is a video: https://cdn.neededapps.com/media/public/7233550e-b84c-4c77-ab8e-8b97088cebc2.mov