AI Agents & MCPs & AI Workflow Automation • (~400 MCP servers for AI agents) • AI Automation / AI Agent with MCPs • AI Workflows & AI Agents • MCPs for AI Agents
TypeScript ai-agentai-agent-toolsai-agentsai-agents-frameworkmcpmcp-servermcp-toolsmcpsn8n-alternativeno-code-automationworkflowworkflow-automationworkflows
import { createAction } from '@activepieces/pieces-framework';
import { metabaseAiProps } from '../../ai-props';
import { metabaseApi } from '../../api';
import { metabaseAuth } from '../../auth';
import { metabaseDeleteTimelineOutputSchema } from '../../output-schemas';
export const deleteTimelineAction = createAction({
auth: metabaseAuth,
name: 'metabase_delete_timeline',
outputSchema: metabaseDeleteTimelineOutputSchema,
displayName: 'Delete Timeline',
description: 'Permanently delete a timeline and its events.',
audience: 'ai',
classification: 'DESTRUCTIVE',
aiMetadata: {
description:
'Permanently deletes a timeline and all its events. To hide it instead (recoverable), use Update Timeline with Archived = Yes.',
idempotent: false,
},
props: {
timelineId: metabaseAiProps.timelineId({ required: true }),
},
async run({ auth, propsValue }) {
await metabaseApi.deleteTimeline({
auth,
timelineId: propsValue.timelineId,
});
return { deleted: true, timelineId: propsValue.timelineId };
},
});