Removing Private Attributes
Private Elements (or Tags) are perfectly legal in DICOM, details of the structure of Private DICOM Elements can be found in DICOM Private Elements.
Removing all Private elements from any DICOM instance is quite simple, following sample code shows you how to do it in DicomObjects.