Alberto B.
07/04/2026, 2:19 PMAI Evy
07/04/2026, 2:19 PMAI Evy
07/04/2026, 2:20 PMDELETE /delete-agent/{agent_id}
The request requires an Authorization header containing your API key in the format "Bearer YOUR_API_KEY" .
For JavaScript/Node.js, the code is:
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: process.env['RETELL_API_KEY'],
}) ;
await client.agent.delete('oBeDLoLOeuAbiuaMFXRtDOLriTJ5tSxD') ;
This deletes all versions of the agent .
If you also need to delete the conversation flow, use:
DELETE /delete-conversation-flow/{conversation_flow_id}
[(2) ]()
For JavaScript/Node.js:
javascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: process.env['RETELL_API_KEY'],
}) ;
await client.conversationFlow.delete('conversation_flow_id') ;
If the UI continues to show issues after API deletion, there may be a UI synchronization problem. The sources indicate there have been UI bugs where conversation flows get erased unexpectedly [(3) ]() , suggesting potential UI stability issues.
If API deletion doesn't resolve the UI issue, consider reaching out to support or checking if there's a caching issue in your browser.AI Evy
07/04/2026, 2:20 PMAI Evy
07/04/2026, 2:20 PMAlberto B.
07/04/2026, 2:52 PMAI Evy
07/04/2026, 2:52 PMAI Evy
07/04/2026, 2:52 PMjavascript
import Retell from 'retell-sdk';
const client = new Retell({
apiKey: process.env['RETELL_API_KEY'],
}) ;
const agentResponse = await client.agent.retrieve('16b980523634a6dc504898cda492e939') ;
console.log(agentResponse.agent_id) ;
If this returns a 404 error even though the agent exists in the dashboard, the team is examining the actual cause of this issue [(1) ]() . This appears to be a backend synchronization problem where published agents aren't properly reflected in the API.
Since this is a known issue being investigated , I recommend reaching out to support directly with your specific agent_id and API key details so they can resolve the synchronization issue on their end.AI Evy
07/04/2026, 2:52 PMAI Evy
07/04/2026, 2:52 PMAlberto B.
07/06/2026, 11:59 AMAI Evy
07/06/2026, 11:59 AMAI Evy
07/06/2026, 11:59 AMAI Evy
07/06/2026, 11:59 AMAI Evy
07/06/2026, 11:59 AM