How to loop the following inside a script, till they all deleted then continue? [Python] [Selenium] [Helium] : How to loop the following inside a script, till they all deleted then continue?

e.g. if there are X, then deleted X and conitue ( X = dynamic ) and so on.

    if Text("Remove").exists():
	click("Remove")

