MCPcopy Create free account
hub / github.com/axe-api/axe-api / delete

Method delete

packages/axe-api/src/Services/ElasticService.ts:38–43  ·  view source on GitHub ↗
(modelName: string, id: string)

Source from the content-addressed store, hash-verified

36 }
37
38 async delete(modelName: string, id: string) {
39 const index = this.toIndex(modelName);
40 const result = await this.client.delete({ index, id: id.toString() });
41 LogService.debug(`\t🔄 ES.delete(${index}) => ${id}`);
42 return result;
43 }
44
45 async search(modelName: string, page: number, size: number, body: any) {
46 const index = this.toIndex(modelName);

Callers

nothing calls this directly

Calls 2

toIndexMethod · 0.95
debugMethod · 0.80

Tested by

no test coverage detected