AnsweredAssumed Answered

GeodatabaseSyncTask unregisterGeodatabase

Question asked by mjk5000 on Jul 24, 2020
Latest reply on Aug 5, 2020 by LDanzinger-esristaff

I can seem to get the unregisterGeodatabase to work?  I have about 5 features services that I take offline.  I only sync one of the geodatabases, which also automatically unregisters it (it appears).  The other 4 I am attempting to unregister in code and it doesn't seem to work?


GeodatabaseSyncTask {
        id: geodatabaseSyncTask
        url: "https://mypath/FeatureServer"

function unRegisterGeoDatabases() {
        try {
            while(GDBList.length > 0) {
                var gdb = aGDBList.pop()
                if (gdb)
        } catch (err) {
            console.log("*****************ERROR FAIL****************");
            console.log("SurveyApp.qml - ERROR unRegisterGeoDatabases :", err);

//Called after the sync?  Do I need to do something like sync?