MCPcopy
hub / github.com/withastro/astro / clear

Method clear

packages/astro/src/preferences/store.ts:39–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 fs.writeFileSync(this.file, JSON.stringify(this.store, null, '\t'));
38 }
39 clear(): void {
40 this.store = {};
41 fs.rmSync(this.file, { recursive: true });
42 }
43 delete(key: string): boolean {
44 dset(this.store, key, undefined);
45 this.write();

Callers 5

resetAllFilesFunction · 0.45
loaderFunction · 0.45
renderAllHeadContentFunction · 0.45
loaderFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected