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

Function removeImpl

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

Source from the content-addressed store, hash-verified

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