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

Function removeImpl

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

Source from the content-addressed store, hash-verified

1244 });
1245
1246 const removeImpl = (owner: Owner, collection: string, key: string) =>
1247 Effect.gen(function* () {
1248 const os = ownerSubject(owner);
1249 if (!os) {
1250 return yield* new StorageError({
1251 message: `Cannot delete plugin storage for owner "user": executor has no subject.`,
1252 cause: undefined,
1253 });
1254 }
1255 yield* input.core.deleteMany("plugin_storage", {
1256 where: whereOwner(owner, collection, key),
1257 });
1258 });
1259
1260 const keysByCollection = (
1261 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