Thanks for visiting! TONMO is the world's greatest online cephalopod enthusiast community, with interactive content going back to May of 2000, and a biennial conference. If you'd like to join in on the fun, become a TONMO member -- it's easy and free. You can follow us on Facebook and Twitter for more cephy goodness.
There's been some research that shows that if part of an octopus' brain is removed, it delays its reaching sexual maturity, and it lives a bit longer. However, I wouldn't really recommend doing brain surgery on your pet.
I seem to remember that removing the testis or ovary doesn't change the lifespan any, just makes the animal unable to reproduce when it does mature. I think in O. Vulgaris removing the optic gland increases the lifespan a bit, but it's taking one piece out of a complicated system. It's also worth noting that this work was done in fairly large octopuses by experts, and it's not clear how many octos even survived the brain surgery... I'd guess that removing parts of the brain of the bimacs and other small octos people keep as pets would be even harder and more likely to harm the animal.