Surgical removal of the thymus gland. The thymus has been demonstrated to play a role in the development of autoimmune myasthenia gravis (MG). It is removed in an effort to improve the weakness caused by MG, and to remove a thymoma (a usually benign tumor of the thymus), if present.