boolean IPS_DeleteVariable (int $VariableID)
VariableID | ID of the variable |
If the command succeeds, it returns TRUE, otherwise FALSE.
This function deletes an existing variable with the ID VariableID.
A variable can only be deleted if it has no child objects.
// Delete the variable 47788
IPS_DeleteVariable(47788);