MCPcopy Create free account
hub / github.com/acoyfellow/cloudbox / deleteUser

Method deleteUser

oauth-proxy/src/worker-entrypoint.ts:185–191  ·  view source on GitHub ↗
(userId: string)

Source from the content-addressed store, hash-verified

183 }
184
185 async deleteUser(userId: string): Promise<RpcResult<{ deletedRegistrations: number }>> {
186 return rpcCatchAll(async () => {
187 const stub = this.getClientStub(userId);
188 const result = await stub.destroyAll();
189 return { ok: true as const, data: result };
190 });
191 }
192
193 async undeleteUser(userId: string): Promise<RpcResult<{ restoredRegistrations: number }>> {
194 return rpcCatchAll(async () => {

Callers 1

createHttpAppFunction · 0.80

Calls 3

getClientStubMethod · 0.95
rpcCatchAllFunction · 0.90
destroyAllMethod · 0.80

Tested by

no test coverage detected