The onychectomy is the extraction of the nail completely or partially.
A dermatologist is a doctor who specializes in diseases of the skin, hair, nails and mucous membranes.
A surgeon is a doctor who can prevent and diagnose a disease through surgery.
Remember that for the proper selection of health professional that treats onychectomy you must consider the nature, severity and symptoms you are presenting.