Trigger Workflows When a User Is Deleted

Learn when the WordPress delete-user hook fires and how to inspect its captured arguments before connecting downstream workflow actions.

The Delete User trigger is listed in the WordPress User group in the AI Agent Workflows editor. It starts a workflow when WordPress fires the delete_user hook. The exact timing follows that hook; it should not be assumed to mean a completed account change unless the hook itself confirms that.

Screenshot to add: [Workflow editor showing the Delete User trigger]

When this trigger fires

This catalog entry listens to delete_user. Confirm that this hook’s timing matches your automation before connecting actions that change data or send notifications.

Event data and privacy

User-trigger payloads use a general structure containing source, event, and the hook’s arguments under args. WordPress user objects are converted to basic fields such as user ID, login, email, and display name. The exact argument structure varies by hook, so inspect a sample in the editor before mapping values.

Configure the trigger

  1. Open the workflow in the visual editor and open the node picker.
  2. Select WordPress, then User, and add Delete User.
  3. Inspect a captured sample to identify the available arguments. The source defines no user-specific filter field for this catalog entry.
  4. Save and test with a controlled event. Use only the fields needed by later nodes and avoid forwarding sensitive account data.

Source hook

Catalog hook: delete_user. This guide describes the supplied plugin registration; live execution has not been tested.