 
   resourcesForSandbox: () =>
     console.log "Fetching list of resources for your SandboxDB..."
-    @getProviderByName('appgyver_sandbox').then (providerUid) =>
-      @config_api.get("/app/#{@getAppId()}/service_providers/#{providerUid}/resources.json", (err, req, res, obj) =>
+    @getProviderByName('appgyver_sandbox').then (provider) =>
+      @config_api.get("/app/#{@getAppId()}/service_providers/#{provider.uid}/resources.json", (err, req, res, obj) =>
         if err?
           Help.error()
           console.log(

      (provider) =>
        if provider?
          Help.error()
          console.log "Provider '#{provider_name}' is already defined"
          process.exit 1

        data =


    @getProviderByName(provider_name).then (provider) =>

      console.log "Removing provider #{provider.name}..."
      @config_api.del("/app/#{@getAppId()}/service_providers/#{provider.uid}.json", (err, req, res, obj) =>
        console.log 'Provider was successfully removed'
        @config_api.close()
        deferred.resolve()
