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 { scrapegraphaiAuth } from '../../auth';
import { scrapegraphaiAiProps } from '../../common/ai-props';
import { scrapegraphaiApi } from '../../common/api';
import { scrapegrapghaiOkOutputSchema } from '../../output-schemas';
export const deleteCrawlAction = createAction({
auth: scrapegraphaiAuth,
name: 'scrapegrapghai_delete_crawl',
outputSchema: scrapegrapghaiOkOutputSchema,
displayName: 'Delete Crawl',
description: 'Permanently deletes a crawl job and its stored pages.',
audience: 'ai',
classification: 'DESTRUCTIVE',
aiMetadata: {
description:
'Permanently deletes a crawl job\'s stored pages; this cannot be undone. Get Crawl then returns the job with status "deleted" and no pages. Use Stop Crawl instead to only halt it.',
idempotent: false,
},
props: {
crawlId: scrapegraphaiAiProps.crawlId({ required: true }),
},
async run({ auth, propsValue }) {
return await scrapegraphaiApi.deleteCrawl({ auth, crawlId: propsValue.crawlId });
},
});