def dropdb(): if prompt_bool( "Are you sure you want to drop the database?"): db.drop_all() print "Database has been dropped"