MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / delete

Method delete

tests/__mocks__/obsidian.ts:89–96  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

87 }
88
89 delete(path: string): void {
90 const normalizedPath = this.normalizePath(path);
91 const file = this.files.get(normalizedPath);
92 if (file) {
93 this.files.delete(normalizedPath);
94 this.emitter.emit('delete', file);
95 }
96 }
97
98 rename(oldPath: string, newPath: string): void {
99 const oldNormalized = this.normalizePath(oldPath);

Callers

nothing calls this directly

Calls 4

normalizePathMethod · 0.95
emitMethod · 0.80
getMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected