RemoveShape (Method)

Applies To:

Shapes collection

Description:

RemoveShape(shapeName)

Deletes a shape from a dashboard using COM or JavaScript. Pass the name of the shape to delete as shapeName.

Caution!

This operation cannot be undone.

Example:

This example removes a shape called LeftGoal.

try{
    Shapes.RemoveShape("LeftGoal")

}catch(e){} // no worries it does not exist