---
icon: package
label: gc
---

### `gc.collect()`

Invoke the garbage collector.

### `gc.enable()`

Enable automatic garbage collection.

### `gc.disable()`

Disable automatic garbage collection.

### `gc.isenabled()`

Return `True` if automatic garbage collection is enabled, `False` otherwise.