MCPcopy Create free account
hub / github.com/subquery/subql / forceClean

Method forceClean

packages/node-core/src/indexer/monitor.service.ts:64–69  ·  view source on GitHub ↗
(monitorDir: string)

Source from the content-addressed store, hash-verified

62 }
63
64 static forceClean(monitorDir: string): void {
65 if (fs.existsSync(monitorDir)) {
66 fs.rmSync(monitorDir, {recursive: true, force: true});
67 logger.info('force cleaned monitor service files');
68 }
69 }
70
71 // maybe a good idea to expose this, if error didn't be caught api could still use reset
72 /**

Callers 1

reindexFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected