You get the guild object, then use a for loop to iterate through each text channel in the guild and do channel.delete(). You'll find everything else that you need in the documentation
A good practice is to familiarize yourself with the documentation so that later on you can find how to do this on your own, and you won't require help.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…