Useful for experiments while diagnosing leaks.
Section: Memory Growth
Force a garbage collection cycle
python
python
import gc
unreachable = gc.collect()
print(unreachable)Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Memory Growth