The type of thyroid surgery performed depends on the underlying thyroid disease and anatomy. For a solitary nodule, a lobectomy of the affected lobe is usually sufficient. For a large goiter compressing nearby structures, a subtotal or total thyroidectomy is often needed. A total or near total thyroidectomy is generally recommended for thyroid cancer cases. The extent of lymph node dissection also depends on the specific type and characteristics of the cancer. Surgical options range from a limited partial lobectomy to a total thyroidectomy, with the goal of removing the problematic area while preserving important surrounding structures like the parathyroid glands and recurrent laryngeal nerve.