function(name) {
  var path = name.split('.');
  var ref = container;

  for (var i = 0; i < path.length - 1; i++) {
    if (!(ref = ref[path[i]])) {
      return;
    }
  }

  if (typeof ref[path[path.length - 1]] === 'object') {
    /**
     * Destroy registered Cream
     */
    if (ref[path[path.length - 1]]._type === 'Cream') {
      removeCream(name, ref[path[path.length - 1]].cream);

    } else if (ref[path[path.length - 1]].cream &&
      ref[path[path.length - 1]].cream._type === 'Cream') {

      removeCream(name, ref[path[path.length - 1]].cream);

      delete ref[path[path.length - 1]].cream;
    }

    delete ref[path[path.length - 1]];
  }
}
function(name) {
  var path = name.split('.');
  var ref = container;

  for (var i = 0; i < path.length - 1; i++) {
    if (!(ref = ref[path[i]])) {
      return;
    }
  }

  if (typeof ref[path[path.length - 1]] === 'object') {
    
    if (ref[path[path.length - 1]]._type === 'Cream') {
      removeCream(name, ref[path[path.length - 1]].cream);

    } else if (ref[path[path.length - 1]].cream &&
      ref[path[path.length - 1]].cream._type === 'Cream') {

      removeCream(name, ref[path[path.length - 1]].cream);

      delete ref[path[path.length - 1]].cream;
    }

    delete ref[path[path.length - 1]];
  }
}
function ( name ) { var path = name . split ( '.' ) ; var ref = container ; for ( var i = 0 ; i < path . length - 1 ; i ++ ) { if ( ! ( ref = ref [ path [ i ] ] ) ) { return ; } } if ( typeof ref [ path [ path . length - 1 ] ] === 'object' ) { /**
     * Destroy registered Cream
     */ if ( ref [ path [ path . length - 1 ] ] . _type === 'Cream' ) { removeCream ( name , ref [ path [ path . length - 1 ] ] . cream ) ; } else if ( ref [ path [ path . length - 1 ] ] . cream && ref [ path [ path . length - 1 ] ] . cream . _type === 'Cream' ) { removeCream ( name , ref [ path [ path . length - 1 ] ] . cream ) ; delete ref [ path [ path . length - 1 ] ] . cream ; } delete ref [ path [ path . length - 1 ] ] ; } }
DI remove method

@name unregister
@function
@access public
@param {String} name namespace remove from
DI remove method