MCPcopy Create free account
hub / github.com/massCodeIO/massCode / deleteSnippet

Function deleteSnippet

src/renderer/composables/useSnippets.ts:510–514  ·  view source on GitHub ↗
(snippetId: number)

Source from the content-addressed store, hash-verified

508}
509
510async function deleteSnippet(snippetId: number) {
511 markPersistedStorageMutation()
512 await api.snippets.deleteSnippetsById(String(snippetId))
513 await getSnippets(queryByLibraryOrFolderOrSearch.value)
514}
515
516async function deleteSnippets(snippetIds: number[]) {
517 markPersistedStorageMutation()

Callers 1

deleteSelectedSnippetsFunction · 0.70

Calls 2

getSnippetsFunction · 0.70

Tested by

no test coverage detected