DeleteVariable (beta feature)#

This command deletes a variable from the robot.

For more information, see Variable management commands (beta).

Syntax#

DeleteVariable(name)

Arguments#

  • name: name of the variable to delete (e.g., “myVar”).

Responses#

  • [2553] [name]

  • [1553] [errorMsg]

    • errorMsg:

      • An error message explaining why variable deletion failed;

      • e.g., “Cannot delete variable myVar (not found)”.

Usage restrictions#

This command can be executed in any robot state.

Cyclic protocols#

This command is not available in cyclic protocols. See Managing variables with cyclic protocols.