MCPcopy
hub / github.com/stephengpope/thepopebot / deleteApiKeyById

Function deleteApiKeyById

lib/db/api-keys.js:101–104  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

99 * @param {string} id - Record ID
100 */
101export function deleteApiKeyById(id) {
102 const db = getDb();
103 db.delete(settings).where(eq(settings.id, id)).run();
104}
105
106/**
107 * Delete all API keys (backwards compat).

Callers 1

deleteApiKeyFunction · 0.85

Calls 1

getDbFunction · 0.90

Tested by

no test coverage detected