How can I destroy object in ArcGIS Runtime SDK 10.2.6 API ? Here is the example how to create object:
var query= ArcGISRuntime.createObject("Query");
Also, if the object has gone out of scope, you can force garbage collection with "gc()" - QML Global Object | Qt QML 5.7
Retrieving data ...