docs: function clearDatabase() {
          var promises = [];
  
          _.each(resources, function (resource) {
              var service = pancakes.getService(resource.name);
              if (service.removePermanently) {
                  log.info('purging ' + resource.name);
                  promises.push(service.removePermanently({ where: {}, multi: true }));
              }
          });
  
          return Q.all(promises);
      }