Retirement tax questions

A final question regarding the withdrawal.  Do I need to withdraw any earnings in the account or do I only need to withdraw the contributions that were made in the past?  For exaample, if I made $2400 contributions in 2020 and my balance is $3000 do I need to withdraw the $600 earnings or can they be left in the account?