Skip to content

How to clean up a very large quote table?

We are trying to move our magento 2.4.4 webshop to a different hostingprovider, but because of the size of some quote tables we can’t get a back-up of the database.
enter image description here

As you can see in the above image the quote, quote_address and quote_id_mask all have 23+ million lines and are very big. How can we safetly clean up these tables? I tried to google it, but most answers are for much older versions of magento.