imports/api/elastic/server/taxons.js
/**
 * Delete an index by its name
 *
 * @param {String} indexName
 */
Delete an index by its name
@param {String} indexName
Delete an index by its name @param { String } indexName
function deleteIndex(indexName) {
  return new Promise(function (resolve, reject) {
    Elastic.indices.delete({index: indexName}, function (err, res) {
      if (err) { reject(err); }
      else { resolve(res); }
    });
  });
}
function deleteIndex ( indexName ) { return new Promise ( function ( resolve , reject ) { Elastic . indices . delete ( { index : indexName } , function ( err , res ) { if ( err ) { reject ( err ) ; } else { resolve ( res ) ; } } ) ; } ) ; }
Delete an index by its name
 @param {String} indexName
Delete an index by its name @param { String } indexName