The unit is effetively sealed.
In theory, if you had the proper temperature, you could put in the oven and split it. DON'T.
The easy way (if it is dust or staining) is to wash it with IPA (isopropyl alcohol).
Maplin et al (electronics component retailers etc) sell about 300-500 ml for £5-£7.
There is a knack though, and if you have a hairdryer it helps.
You need to sluice the inside of the lens using the IPA (it will evaporate very quickly), you need to swirl the IPA, dissolve or suspend the debris and dump out of the headlamp unit while the IPA is still liquid and holding the dirt.
If it evaporates it will deposit the dirt back again leaving "water marks".
If you can squirt the IPA directly onto the lens, that is better. Use a 30-40 cm flexible tube (a battery overflow pipe works well). Post the tube down through the bulb access ports (remove these anyway to allow you to dump the dirty IPA out of the unit).
When you are happy with a cleaning swirl, quickly hairdryer the front if the lens to evaporate the IPA.
This may take a few attempts before you get all the dirt out and/or you get the swirl right to not leave "water marks".
Don't be shy with the IPA (it won't damage any of the electronics), don't be surprised if you need to use a whole can of IPA.
Try not to get the IPA on any mechanical parts, if it dissolves any lubricating oils and deposits it on the lens, it's back to square one again and you start washing all over again.