MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / deleteNote

Function deleteNote

apps/desktop/src/mcp/vault-ops.ts:730–733  ·  view source on GitHub ↗
(root: string, rel: string)

Source from the content-addressed store, hash-verified

728}
729
730export async function deleteNote(root: string, rel: string): Promise<void> {
731 const abs = resolveSafe(root, rel)
732 await fs.rm(abs, { force: true })
733}
734
735export async function emptyTrash(root: string): Promise<void> {
736 const trashDir = path.join(root, 'trash')

Callers 1

server.tsFile · 0.70

Calls 1

resolveSafeFunction · 0.70

Tested by

no test coverage detected