Delete an agent using Zapier
This guide explains how to use the Delete Agent action in Zapier to automatically remove an existing agent from your CustomGPT account as part of a workflow.
What is the Delete Agent action?
The Delete Agent action allows you to remove a specific CustomGPT agent from your account through an automated Zapier workflow. This is useful when you want to decommission test agents, reset environments, or manage agent lifecycle programmatically.
Important:This action is permanent. Once an agent is deleted, all associated data, conversations, and uploaded files are removed and cannot be recovered.
What this does
When this action runs:
- The agent specified by name is deleted from your CustomGPT workspace.
- Any associated conversations, files, and configurations tied to the agent are also removed.
You can use this action in workflows where agents are created dynamically (e.g., for demos or testing) and automatically cleaned up afterward.
How to configure this action in Zapier
- Log in to your Zapier account and click Create Zap.

- In the Trigger section, select the app that will start the workflow (e.g., Slack, Google Drive, orany supported Zapier app trigger. ).

- Choose a trigger event such as New file, New message, or Form submission and test the trigger to make sure it’s working correctly.

- In the Action step, search for CustomGPT.

- Select the Delete Agent action

- When prompted, sign in to CustomGPT by clicking Sign In and entering your API key. To get your API key, see the API Key Guide .

- In the Set up action section, you’ll see a field labeled Agent Name. Enter the exact name of the agent you want to delete. This must match the agent name in your CustomGPT dashboard.

- Click Continue, then use Test to confirm that the action runs as expected.

- Once confirmed, click Publish to activate your Zap.

Input parameters
Field | Description |
---|---|
Agent Name | The exact name of the agent to delete. This field is required. Ensure it matches an existing agent name in your account. |
Updated about 3 hours ago