Home / Function/ delete() — astro Function Reference

delete() — astro Function Reference

Architecture documentation for the delete() function in mutable-data-store.ts from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  8d12acf1_bfab_90a4_6086_65c243d3c193["delete()"]
  ecb98618_124a_e276_dd98_561beaedc6ea["MutableDataStore"]
  8d12acf1_bfab_90a4_6086_65c243d3c193 -->|defined in| ecb98618_124a_e276_dd98_561beaedc6ea
  style 8d12acf1_bfab_90a4_6086_65c243d3c193 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/src/content/mutable-data-store.ts lines 45–51

	delete(collectionName: string, key: string) {
		const collection = this._collections.get(collectionName);
		if (collection) {
			collection.delete(String(key));
			this.#saveToDiskDebounced();
		}
	}

Subdomains

Frequently Asked Questions

What does delete() do?
delete() is a function in the astro codebase, defined in packages/astro/src/content/mutable-data-store.ts.
Where is delete() defined?
delete() is defined in packages/astro/src/content/mutable-data-store.ts at line 45.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free