@manager.command
def dropall():
 if prompt_bool('Are you sure ? You will lose all your data !'):
  db.drop_all()

@ manager . command def dropall ( ) : if prompt_bool ( 'Are you sure ? You will lose all your data !' ) : db . drop_all ( )
drops all database tables .