I can't promise that this will actually fully Anonymize your DICOM. No extensive testing has been done. No verification. WYSIWYG.
This script removes the patient data from a set of DICOM files. You will need python3 with tkinter and pydicom libraries.
Select a directory containing DICOM files. Click "Anonymize"