Surgery may be indicated for select patients.  For example, patients may need surgery if the following issues occur:  Fungating/painful breast lesions (mastectomy).  Parenchymal brain or vertebral metastases with spinal cord compression.  Isolated lung metastases.  Pathologic (or impending) fractures.  Pleural or pericardial effusions.

Source:  NCI  2019