def clear_database(engine: Connectable, schemas: Iterable[str] = ()) -> None:
assert check_argument_types()<EOL>metadatas = []<EOL>all_schemas = (None,)  <EOL>all_schemas += tuple(schemas)<EOL>for schema in all_schemas:<EOL><INDENT>metadata = MetaData()<EOL>metadata.reflect(engine, schema=schema, views=True)<EOL>metadatas.append(metadata)<EOL><DEDENT>for metadata in metadatas:<EOL><INDENT>metadata.drop_all(engine, checkfirst=False)<EOL><DEDENT>
Clear any tables from an existing database.

:param engine: the engine or connection to use
:param schemas: full list of schema names to expect (ignored for SQLite)