I have bought a number of used tanks over the years. Some worse than other and I always use the same system. Normally this must be done outdoors as I have tanks 1rom 150 gal down to 5.5. The methods below are for glass tanks.
I set them on a raised surface in a place where I can easilly disperse the water and not kills things by not being able to rpead it out. I am cleaning for two specific things and there is a bunch of rinsing and maybe some fine hand cleaning to do.
If there is a white hard crusty coating
I fill the tank with a very low pH water. I do this by adding muriatic acid. But this is dangerous stuff to use if you do not know what you are doing. So adults only and ones who understand how carefull to be. For others I suggest white vinegar- stinks but it works. You will need more of this than the acid.
Fillt the tank with water adding the acod/vinregar as you got. let it soak for about 20 or 30 minutes at least and longer is often better. Tools you may need: Algae scraper with metal blade, algae pad, a single edge razor and Q-tips.
Do not put your bare hands into the tank if you use the muriatic acid.
After the soaking, use the scraper to remofe buidup on the glass. Use the agae scrubber for uneven surfaces, used the single edge razor for tight spaces. For the finer work you can wait until your drain the tank to do it.
If you must put you hands/arms into the tank with acid, wear protective gloves. Long kitchen gloves are good for not having to go too deep. Armpit length must be used for deeper work.
If the tank is really crusty it may not all come off doing just the above. You will needs to go over them again using the Qtip or a tiny pies of a sponge dipped in pure venegar ior a stronger consentration of the acid (wear gloves). Apply the liquid to the stubborncrust. Let it sits ofr a nut and then use the razor or scrubber pad to remove. Repeat as needed.
Rinse the tank. you do not need to fill it, you reed to run water downs the side, under the edge of the top frames and the bottom glass. Dump the water. Tank is good to go from this faze.
If the tank needs disinfecting
Bleach is yopur friend Chlorine kills and can even dissolve almost anything organic, The key to this is chlorine gas. This take work to get intoa liquid like bleach. Most of household bleach is water. The good thing about it is that chlorine evaporates and leave no trace behind. Use only plain unscented bleach. Do not use the low splash but concentrated is OK.
Plant keepers use a 19-1 (water to bleach mix to kill algae). You can go a bit stronger. But bear in mind that if you want to sterilize a 100 gallon tanks you would need between 5 and gals. of bleach, these fays that is going to cost about %20 - $50. One way to reduce this is to fill the tank less, and then to use a small pump and hose to wash down the unsubmerged glass. Besure to gieve this glass a fewm minute
wash.
When done, drain the tank. Then use just water to rinse it down and empty it. All of the clorine will evaporate and any small amounts of additives will be so diluted that they wont matter isfthere are any at all.
I have never ever lost a single fish doing the two above methods. Chlorine is only dangerous if it is disolved in the water. Nothing dry will have any chlroine in or on it. By volume, I use more chlorine for tank work than any other chemical. But I use a couple of HOT Magnums using the micron Cartridges and those ae cleaned by being put intop a 25% bleach solution overnight. The are reused after having the dissolved gunk rinsed out and they are completely fried.