I want to delete a table using SQLAlchemy.
Since I am testing over and over again, I want to delete the table my_users so that I can start from scratch
Alternative to calling cls.__table__.drop(your_engine), you can try this:
Base.metadata.drop_all(bind=your_engine, tables=[User.__table__])
This method as well as the create_all() method accept an optional argument tables, which takes an iterator of sqlalchemy.sql.schema.Table instances.
You can control which tables are to be created or dropped in this way.