MCPcopy Create free account
hub / github.com/experdot/pointer / cleanupMessageAttachmentFiles

Function cleanupMessageAttachmentFiles

src/main/attachmentStorage.ts:145–151  ·  view source on GitHub ↗
(
  pageId: string,
  messageId: string
)

Source from the content-addressed store, hash-verified

143}
144
145export async function cleanupMessageAttachmentFiles(
146 pageId: string,
147 messageId: string
148): Promise<void> {
149 const targetDir = resolveDirectoryWithinAttachmentsRoot(pageId, messageId)
150 await rm(targetDir, { recursive: true, force: true })
151}
152
153export async function cleanupPageAttachmentFiles(pageId: string): Promise<void> {
154 const targetDir = resolveDirectoryWithinAttachmentsRoot(pageId)

Callers 1

Tested by

no test coverage detected