 
     @getProviderByName(provider_name).then (provider) =>
 
-      console.log "Removing provider #{provider_name}..."
-      @config_api.del("/app/#{@getAppId()}/service_providers/#{provider}.json", (err, req, res, obj) =>
+      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()


  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) =>
        if err?
          Help.error()
          console.log(

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

        data =
