lib/api/modules/organizations.js
function (orgIdOrSlug)  {
    var path;
    if (orgIdOrSlug) {
      path = this.constructPath(constants.ORGANIZATIONS, orgIdOrSlug);
      return this.Core.DELETE(path);
    } else {
      return this.rejectRequest('Bad Request: An organization id or slug is required.');
    }
  }
function (orgIdOrSlug)  {
    var path;
    if (orgIdOrSlug) {
      path = this.constructPath(constants.ORGANIZATIONS, orgIdOrSlug);
      return this.Core.DELETE(path);
    } else {
      return this.rejectRequest('Bad Request: An organization id or slug is required.');
    }
  }
function ( orgIdOrSlug ) { var path ; if ( orgIdOrSlug ) { path = this . constructPath ( constants . ORGANIZATIONS , orgIdOrSlug ) ; return this . Core . DELETE ( path ) ; } else { return this . rejectRequest ( 'Bad Request: An organization id or slug is required.' ) ; } }
Delete an organization
@param  {String|Integer} orgIdOrSlug A Robin organization id or slug
@return {Function}                   A Promise
Delete an organization