 Thymectomy is the surgical removal of the thymus.The usual reason for removal is to gain access to the heart for surgery to correct congenital heart defects in the neonatal period.Other indications for thymectomy include the removal of thymomas and the treatment of myasthenia gravis.