Skip to main content
Glama

mcp-google-sheets

delete-space.ts817 B
import { medullarAuth } from '../../index'; import { createAction } from '@activepieces/pieces-framework'; import { httpClient, HttpMethod } from '@activepieces/pieces-common'; import { medullarCommon } from '../common'; import { medullarPropsCommon } from '../common'; export const deleteSpace = createAction({ auth: medullarAuth, name: 'deleteSpace', displayName: 'Delete Space', description: 'Delete an existing Space.', props: { spaceId: medullarPropsCommon.spaceId, }, async run(context) { await httpClient.sendRequest({ method: HttpMethod.DELETE, url: `${medullarCommon.aiUrl}/spaces/${context.propsValue.spaceId}/`, headers: { Authorization: `Bearer ${context.auth}`, }, }); return {deleted: true, spaceId: context.propsValue.spaceId}; }, });

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