Daft sod lol
Soaking a crash helmet completely for some types will be extremely dangerous to it's structural integrity (inner shell not designed to deal with being wet and/or cleaning agents).
A foam cleaner as said by dustin is best way if your lid doesn't allow you to removed the interior. That way you can target the padding and not the shell itself