The type of skin cancer that affects the nails is called melanoma. Surgery is the usual treatment for people with melanoma. Other treatments may include:  Chemotherapy. Photodynamic therapy. Radiation therapy. Biological therapy. Targeted therapy.