Skip to main content
Glama
delete.ts464 B
import { GraphQLResolveInfo } from "graphql"; import { Context } from '../types.js'; export const deleteApiResolver = async ( _: any, { id }: { id: string; }, context: Context, info: GraphQLResolveInfo ) => { const existing = await context.datastore.getApiConfig({ id, orgId: context.orgId }); if (!existing) { throw new Error(`API config with id ${id} not found`); } return context.datastore.deleteApiConfig({ id, orgId: context.orgId }); };

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/superglue-ai/superglue'

If you have feedback or need assistance with the MCP directory API, please join our Discord server