is it good to empty your gas tank to clean out the sediments?
No. Not unless you’re removing the tank for some repair.
Most Fuel Tanks Have A Screen To Keep Any Large Debris In The Tank. Cars Have Gasoline Filters To Trap Finer Sediment. The Filter Should Be Replaced, Periodically.
CSA
How, pray tell, does running your tank to empty get the sediment out? Through the fuel pump? You don’t want that crap in the pump or the injectors.
You did not say if you wanted to have the tank pumped out and cleaned or if you want to drive until your car runs out of fuel. Running out of fuel is not good for any car.
Most people will never need to have their tank cleaned. Most all fuel available today is clean and will not cause problems unless there is some problem with the fuel you bought.