Surgery to remove part or all of your liver may be done if the cancer has not spread. If part of the liver is removed, your liver may re-grow the missing part. If the whole liver is removed, you will need a liver transplant.