You can do for loops and loop over guild roles then deleting every role. Example
for roles in ctx.guild.roles:
if role.name != "role name that you want to exclude":
pass
else:
await roles.delete(reason="Reason Here")
await ctx.send("Deletion Complete.", delete_after=3)
Check the docs for ctx.guild.roles,
and check the docs for delete()
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…