A prostatectomy is primarily recommended for individuals diagnosed with prostate cancer, especially in its early stages. Other indications may include severe urinary symptoms due to benign prostatic hyperplasia (BPH) or chronic prostatitis that does not respond to other treatments. The goal is to remove cancerous tissues and prevent the spread of the cancer.