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 { veroAuth } from '../common/auth';
import { makeRequest } from '../common/client';
import { HttpMethod } from '@activepieces/pieces-common';
export const deleteUser = createAction({
auth: veroAuth,
name: 'deleteUser',
displayName: 'Delete User',
description: 'Delete a user and all their properties and activities permanently. This action is irreversible.',
audience: 'both',
aiMetadata: {
description:
'Permanently deletes a Vero user, identified by user ID, along with all of their properties and activity history. This is irreversible. Re-running on an already-deleted ID has no further effect, so it is effectively idempotent on the same target.',
idempotent: true,
},
props: {
id: Property.ShortText({
displayName: 'User ID',
description: 'The unique identifier of the user to delete',
required: true,
}),
},
async run(context) {
const { id } = context.propsValue;
const response = await makeRequest(
context.auth.secret_text,
HttpMethod.POST,
'/users/delete',
{
id,
}
);
return response;
},
});