If data processing is based on your consent, you have the right to withdraw or revoke it at any time. Withdrawal or revocation of consent does not have retroactive effects. Therefore, it does not affect the validity of the previous processing. It should be noted that withdrawing consent should be as simple as giving it.
If you withdraw the consent that legitimises the processing, you can also request the deletion of the data from the entity responsible for the processing.