iode.Database.clear
Note
Below, Database represents either:
Comments
Equations
Identities
Lists
Scalars
Tables
Variables
- Database.clear(self)
Delete all objects from the current database.
Examples
>>> from iode import SAMPLE_DATA_DIR >>> from iode import comments >>> comments.load(f"{SAMPLE_DATA_DIR}/fun.cmt") >>> len(comments) 317 >>> comments.clear() >>> len(comments) 0