not enough in roth ira account to reverse an excess contribution

i made an excess contribution to a Roth iRA in 2019, so i need to withdraw that contribution to reverse it. in the meantime, due to the downturn in the market, the value of that account is now less than the contribution i made. do i just withdraw everything from the account to reverse the contribution?