.. highlightlang:: us .. _xydestroy: XYDestroy ========= .. index:: XYDestroy .. us.tag XYDestroy ENGLISH :ref:`XYDestroy` destroys the given xy- or ty-dataset and frees any memory the dataset occupied. .. function:: bool = XYDestroy(hData) .. us.return **Return Value** If the function succeeds, the return value *bool* is TRUE (1); otherwise it is FALSE (0). .. us.params **Parameters** .. uparam:: hData The handle of a dataset created with :ref:`XYCreate` or :ref:`TYCreate`. .. seealso:: :ref:`overview-xy-datasets`, :ref:`XYCreate`, :ref:`TYCreate` :sub:`id-1977307`