You can withdraw your token any time you want, most protocols allow that, to do so, please follow the guide below:
On the Earn tab, click on the token you want to withdraw:
A pop-up window will appear, choose to withdraw. If this is the first time you withdraw, you will need to make an approve transaction.
You could also choose the amount of token you want to take out. After select everything, click Confirm to make a transaction, the fund will return to your wallet.