MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / removeImpl

Function removeImpl

packages/core/sdk/src/executor.ts:1000–1012  ·  view source on GitHub ↗
(owner: Owner, collection: string, key: string)

Source from the content-addressed store, hash-verified

998 });
999
1000 const removeImpl = (owner: Owner, collection: string, key: string) =>
1001 Effect.gen(function* () {
1002 const os = ownerSubject(owner);
1003 if (!os) {
1004 return yield* new StorageError({
1005 message: `Cannot delete plugin storage for owner "user": executor has no subject.`,
1006 cause: undefined,
1007 });
1008 }
1009 yield* input.core.deleteMany("plugin_storage", {
1010 where: whereOwner(owner, collection, key),
1011 });
1012 });
1013
1014 const keysByCollection = (
1015 entries: readonly { readonly collection: string; readonly key: string }[],

Callers 1

makePluginStorageFacadeFunction · 0.85

Calls 2

whereOwnerFunction · 0.85
ownerSubjectFunction · 0.70

Tested by

no test coverage detected