Hepatectomy or liver resection is a surgical operation to remove part or all of your liver. If you have part of your liver removed, it can grow back to its former size. If you have a total hepatectomy, you will need a liver transplant.