Skip to main content
Glama
delete-agent.ts703 B
import { createAction } from '@activepieces/pieces-framework'; import { projectId } from '../common/props'; import { customgptAuth } from '../common/auth'; import { makeRequest } from '../common/client'; import { HttpMethod } from '@activepieces/pieces-common'; export const deleteAgent = createAction({ auth: customgptAuth, name: 'deleteAgent', displayName: 'Delete Agent', description: 'Delete a CustomGPT agent', props: { projectId: projectId, }, async run(context) { const { projectId } = context.propsValue; const response = await makeRequest( context.auth.secret_text, HttpMethod.DELETE, `/projects/${projectId}` ); return response; }, });

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/activepieces/activepieces'

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