You can't.
Earthworms are good for the soil, but they do more harm than good in the basin soil, because the space in the basin soil is small and the range of earthworm activities is small. In its activities, the roots of plants will be separated from the soil, and plants will be reduced or unable to have nutrition and water because the roots can not directly contact the soil, so its growth will be inhibited, so it is best to get rid of it.
The method is to soak the flowers in deep water for about 20 hours. Earthworms should be moved out in time to prevent waterlogging.
You can also use a slightly thicker liquid of organophosphorus pesticides to pour the pot soil. This method will kill it, which is a bit cruel.