Timeglider does not let me destroy all variables with the given function

Timeglider does not let me destroy all variables with the given function

I'm not that advanced with jQuery widgets and I have no idea how to **access** the **destroy function**. You can find that function from an older version here: https://code.google.com/p/codeset/source/browse/trunk/web/timegliderExample/js/timeglider/timeglider.timeline.widget.js?r=4

Usually you create timeglider with:

    tg1 = $("#timelinearea").timeline({...

and so I tried to access that destoy function as well:

    tg1 = $("#timelinearea").timeline.destroy();
    tg1 = $("#timelinearea").destroy();
    tg1.destroy();

But console always says function is not found. How can I access that function?