Epic AI icon

Epic AI

Interact with the Epic AI (ChatCaptain) API

Variable → Delete Global Variable

AI-generated

Summary

Delete a global variable by ID from a specified chatbot.

Inputs

  • chatbotId (required) — The ID of the chatbot that owns the variable.
  • variableId (required) — The ID of the global variable to delete.

Output shape

object indicating success; typically contains a success boolean; may also include parsed JSON from the API

The operation sends a DELETE request; on success the response is parsed and returned; errors are thrown. No additional fields are guaranteed.

Examples

Example 1: Delete a global variable named 'user_score' in chatbot 'bot_abc'.

chatbotId: bot_abc, variableId: user_score, operation: Delete Global Variable

Example 2: Remove variable 'session_token' from the active chatbot.

chatbotId: myChatbot, variableId: session_token, operation: Delete Global Variable

Example 3: Delete variable 'temp_data' as part of a cleanup workflow.

chatbotId: cleanup_bot, variableId: temp_data, operation: Delete Global Variable

Links

Discussion