# Scoped cleanup lesser conduits **🟡 Intermediate · Lesson 29** Scopes that END. A lesser conduit is a scope you can THROW AWAY: build one for a job, meld what the job needs, then cleanup() the child - its per-conduit creations are disposed through the book's disposal vocabulary, and the root keeps working untouched. THE LIFECYCLE LAW: with a DI runtime YOU own the lifecycles. The runtime holds references to what it built, so the GC cannot free what the world still holds - cleanup() is how memory comes back. (Beginner lesson 41 proves this with a weakref; here it becomes a working pattern.) ## Before you run Use the [Intermediate guide](../../intermediate/index.md) for prerequisite concepts. Run from a checkout with Melder installed and Python 3.14 free-threading selected. The collection download includes the level's local helper modules. ## Run the saved script ```bash python UX_and_AIX_experiences/02_intermediate/29_scoped_cleanup_lesser_conduits.py ``` ```powershell py -3.14t UX_and_AIX_experiences/02_intermediate/29_scoped_cleanup_lesser_conduits.py ``` {download}`Download this collection <../../downloads/intermediate-examples.zip>` · [Source on GitHub](https://github.com/Synaptic724/melder/blob/0895ce795453cd87e35d70665957b4e89aad3317/UX_and_AIX_experiences/02_intermediate/29_scoped_cleanup_lesser_conduits.py) ## Public surface create_lesser_conduit as a disposable scope, conduit.cleanup() on the child only, disposal_method_names firing scope-locally ## Code ```{literalinclude} ../../downloads/02_intermediate/29_scoped_cleanup_lesser_conduits.py :language: python :linenos: ``` ## Check the outcome The script contains its own assertions or demonstrated refusal paths. Run it to evaluate those checks against your installed version. The code above is taken directly from the saved file; no run output is invented here. [More intermediate examples](index.md) · [Level guide](../../intermediate/index.md) ## Related guides - [Spell spaces, lineage, and child scopes](../../intermediate/scopes.md)