           # delete the credentials that are associated with the account
           JCredential = require './computeproviders/credential'
           JCredential.some$ client, { originId: accountId }, {}, (err, credentials) ->
+
+            return next()  unless credentials
 
             deleteCredentials = credentials.map (credential) -> (fin) ->
               credential.delete client, fin


      # delete resources of the account, team and account itself
      queue = [
        (next) ->
          # deny from all machines that are shared with the account
          JMachine = require './computeproviders/machine'
          selector = { 'users.username' : username }
          JMachine.some selector, {}, (err, machines) ->

            deleteMachines = machines.map (machine) -> (fin) ->
              machine.deny client, fin


          JApiToken.remove { originId: accountId }, ->
            kallback 'JApiToken', next, err


        (next) ->
          # delete invitations
