A tonsillectomy is a surgical procedure in which the tonsils are removed. Sometimes the adenoids are removed at the same time.