A cholecystectomy is a operation that is performed when the gallbladder is infected or inflamed. During a cholecystectomy, the gallbladder is completely removed from the body. It is a relatively safe surgery with mild side effects in most cases.