bool EraseData(string name) /ETHEntity

Erases a custom variable with matching name. More about custom data.

Sample:

entity.SetVector2("directionVec", vector2(1,0));
entity.EraseData("directionVec");
if (entity.CheckCustomData("directionVec") == DT_NODATA)
    print("no more directionVec!");

Output:

no more directionVec!