Yes, coconut oil is great at killing fleas, and it’s safe. The oil suffocates the fleas and kills adults and larvae. Coconut oil contains lauric acid, which is beneficial to dogs but deadly to fleas.
However, when applying coconut oil to a dog’s coat, ensure you do it outdoors, as fleas may jump out of the coat.