Skip to main content
Glama

mcp-google-sheets

delete-file.ts726 B
import { Property, createAction } from '@activepieces/pieces-framework'; import { amazonS3Auth } from '../..'; import { createS3 } from '../common'; export const deleteFile = createAction({ auth: amazonS3Auth, name: 'deleteFile', displayName: 'Delete File', description: 'Deletes an existing file.', props: { key: Property.ShortText({ displayName: 'Key', description: 'The key of the file to delete.', required: true, }), }, async run(context) { const { bucket } = context.auth; const { key } = context.propsValue; const s3 = createS3(context.auth); const response = await s3.deleteObject({ Bucket: bucket, Key: key, }); return response }, });

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