           next: 'getInstanceKeys'
           instanceValues: instance
         }
-        thisArray.splice(index, 1)
+        thisSet.delete(instance)
     )
   )
 


  # Delete instance
  syncState.instancesToDelete.forEach((instances, parent) ->
    instances.forEach((instance, index, thisArray) ->
      if rpcReq?
        completed = false
      else

          type: 'DeleteObject'
          objectName: instance.join('.') + '.'
        }
        thisSet.delete(instance)
    )
  )

