-Be sure to use a soft, dry, lint-free cloth.
-You have to make sure that no liquid gets into the opening
-Next, take a dry cotton swab to clean the microphone and speaker meshes
-Use a dry and clean soft bristled brush to remove any debris from the speaker meshes
The above-mentioned steps are given by Apple to clean your AirPods. However, if you want to try a few other hacks then you can follow these steps as well. As per CultofMac, one needs a few things in order to keep AirPods clean: rubbing alcohol, cotton buds, scraper and paper towels. Follow these steps for a more ‘disinfecting’ method of cleaning the AirPods:
-Take a paper towel and moisten it with rubbing alcohol or even distilled water
-Rub the paper all over the AirPods but do not get any sort of liquid inside them.
-Do not put the AirPods back in the case immediately after cleaning them
-Keep the AirPods outside the charging case to dry them for a short while
That’s it. Follow these steps every time you feel the AirPods are getting dirty and you’ll have them in a much cleaner condition.