Skip to main content
Glama

mcp-google-sheets

delete-table.ts1.1 kB
import { createAction } from '@activepieces/pieces-framework'; import { httpClient, HttpMethod, AuthenticationType, } from '@activepieces/pieces-common'; import { excelAuth } from '../../index'; import { excelCommon } from '../common/common'; export const deleteTableAction = createAction({ auth: excelAuth, name: 'delete_table', description: 'Delete a table from a worksheet', displayName: 'Delete Table', props: { workbook_id: excelCommon.workbook_id, worksheet_id: excelCommon.worksheet_id, table_id: excelCommon.table_id, }, async run({ propsValue, auth }) { const workbookId = propsValue['workbook_id']; const worksheetId = propsValue['worksheet_id']; const tableId = propsValue['table_id']; const response = await httpClient.sendRequest({ method: HttpMethod.DELETE, url: `${excelCommon.baseUrl}/items/${workbookId}/workbook/worksheets/${worksheetId}/tables/${tableId}`, authentication: { type: AuthenticationType.BEARER_TOKEN, token: auth['access_token'], }, }); return response.body; }, });

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