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, Property } from '@activepieces/pieces-framework';
import { omniAuth } from '../common/auth';
import { makeRequest } from '../common/client';
import { HttpMethod } from '@activepieces/pieces-common';
import { scheduleIdDropdown } from '../common/props';
export const deleteASchedule = createAction({
auth: omniAuth,
name: 'deleteASchedule',
displayName: 'Delete a schedule',
description: 'Deletes a schedule using its UUID',
audience: 'both',
aiMetadata: {
description:
'Deletes an Omni dashboard schedule by its UUID. Use to stop a recurring delivery the agent has identified. Effectively idempotent: once removed, repeating the call with the same UUID has no further effect.',
idempotent: true,
},
props: {
scheduleId: scheduleIdDropdown,
},
async run(context) {
const { scheduleId } = context.propsValue;
const response = await makeRequest(
context.auth.secret_text,
HttpMethod.DELETE,
`/schedules/${scheduleId}`,
{}
);
return response;
},
});