Skip to main content
Glama

mcp-google-sheets

delete-points.ts1.16 kB
import { createAction } from '@activepieces/pieces-framework'; import { collectionName, convertToFilter, seclectPointsProps } from '../common'; import { qdrantAuth } from '../..'; import { QdrantClient } from '@qdrant/js-client-rest'; export const deletePoints = createAction({ auth: qdrantAuth, name: 'delete_points', displayName: 'Delete Points', description: 'Delete points of a specific collection', props: { collectionName, ...seclectPointsProps, }, run: async ({ auth, propsValue }) => { const client = new QdrantClient({ apiKey: auth.key, url: auth.serverAddress, }); const collectionName = propsValue.collectionName as string; if (propsValue.getPointsBy === 'Ids') { const ids = JSON.parse(propsValue.infosToGetPoint['ids']); return await client.delete(collectionName, { points: ids instanceof Array ? ids : [ids], }); } const filter = convertToFilter( propsValue.infosToGetPoint as { must: any; must_not: any } ); // console.log(JSON.stringify(filter)) return await client.delete(collectionName, { filter, wait: true, }); }, });

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