clear() — astro Function Reference
Architecture documentation for the clear() function in mutable-data-store.ts from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 70d207ce_27e5_2bdf_8c16_f5599477168b["clear()"] ecb98618_124a_e276_dd98_561beaedc6ea["MutableDataStore"] 70d207ce_27e5_2bdf_8c16_f5599477168b -->|defined in| ecb98618_124a_e276_dd98_561beaedc6ea d05bc76d_a29e_4916_8686_93bba2b13bfd["clearAll()"] d05bc76d_a29e_4916_8686_93bba2b13bfd -->|calls| 70d207ce_27e5_2bdf_8c16_f5599477168b f03b05d5_a06a_1438_1154_d1d6dcdbbdb9["scopedStore()"] f03b05d5_a06a_1438_1154_d1d6dcdbbdb9 -->|calls| 70d207ce_27e5_2bdf_8c16_f5599477168b style 70d207ce_27e5_2bdf_8c16_f5599477168b fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/src/content/mutable-data-store.ts lines 53–56
clear(collectionName: string) {
this._collections.delete(collectionName);
this.#saveToDiskDebounced();
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does clear() do?
clear() is a function in the astro codebase, defined in packages/astro/src/content/mutable-data-store.ts.
Where is clear() defined?
clear() is defined in packages/astro/src/content/mutable-data-store.ts at line 53.
What calls clear()?
clear() is called by 2 function(s): clearAll, scopedStore.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free