To eliminate dandruff from the scalp, the first thing you should do is identify your skin, that is, if your skin is dry or oily. This will help you a lot to make a good decision when taking a treatment.
Oily skin or oily skin.

It is one where the person produces fat on the face and scalp, seeing a shiny face, as if oil had been applied.
To eliminate dandruff if you have oily skin, what you should do is buy a ketoconazole shampoo, an antibacterial soap, a sunscreen and an irritation spray.
You will use the shampoo every 2 days, that is, one day yes and one day no.
You are going to use the soap 2 times a day for 5 minutes (in the morning and at night)
Sunscreen should be used 3 to 4 times a day, regardless of whether you are exposed to the sun or not.
And you are going to use the sprar after washing yourself with the soap.

Don’t scratch your scalp: Scratching your scalp can make dandruff worse and cause irritation. Try to resist the temptation to scratch and avoid damaging the skin.
Massage the scalp: While washing, gently massage the scalp with your fingertips. This will help stimulate blood circulation and remove dead skin cells.
Dry skin.
This treatment is similar to the previous one, except that for this one you will not need the spray and the shampoo, instead of using it every 2 days, you will use it every 3 days.
Wash your hair regularly: Wash your hair frequently to keep your scalp clean. The buildup of oil and dead cells can make dandruff worse, so make sure you keep it clean.
Avoid excessive use of hair products: Some hair products, such as gels or waxes, can make dandruff worse. Try to reduce your use or choose products specifically designed for sensitive scalps.
Both procedures must be performed in a period of 4 weeks.
Remember that you should always consult a doctor before starting any treatment.
If, despite following these tips, dandruff persists or worsens, I recommend that you consult a dermatologist. They will be able to evaluate your specific case and provide you with appropriate treatment.