@Override
    public DeleteOrganizationResult deleteOrganization(DeleteOrganizationRequest request) {
        request = beforeClientExecution(request);
        return executeDeleteOrganization(request);
    }
@ Override public DeleteOrganizationResult deleteOrganization ( DeleteOrganizationRequest request ) { request = beforeClientExecution ( request ) ; return executeDeleteOrganization ( request ) ; }
<p>
Deletes the organization. You can delete an organization only by using credentials from the master account. The
organization must be empty of member accounts.
</p>

@param deleteOrganizationRequest
@return Result of the DeleteOrganization operation returned by the service.
@throws AccessDeniedException
You don't have permissions to perform the requested operation. The user or role that is making the
request must have at least one IAM permissions policy attached that grants the required permissions. For
more information, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access.html">Access
Management</a> in the <i>IAM User Guide</i>.
@throws AWSOrganizationsNotInUseException
Your account isn't a member of an organization. To make this request, you must use the credentials of an
account that belongs to an organization.
@throws ConcurrentModificationException
The target of the operation is currently being modified by a different request. Try again later.
@throws InvalidInputException
The requested operation failed because you provided invalid values for one or more of the request
parameters. This exception includes a reason that contains additional information about the violated
limit:</p> <note>
<p>
Some of the reasons in the following list might not be applicable to this specific API or operation:
</p>
</note>
<ul>
<li>
<p>
IMMUTABLE_POLICY: You specified a policy that is managed by AWS and can't be modified.
</p>
</li>
<li>
<p>
INPUT_REQUIRED: You must include a value for all required parameters.
</p>
</li>
<li>
<p>
INVALID_ENUM: You specified a value that isn't valid for that parameter.
</p>
</li>
<li>
<p>
INVALID_FULL_NAME_TARGET: You specified a full name that contains invalid characters.
</p>
</li>
<li>
<p>
INVALID_LIST_MEMBER: You provided a list to a parameter that contains at least one invalid value.
</p>
</li>
<li>
<p>
INVALID_PARTY_TYPE_TARGET: You specified the wrong type of entity (account, organization, or email) as a
party.
</p>
</li>
<li>
<p>
INVALID_PAGINATION_TOKEN: Get the value for the <code>NextToken</code> parameter from the response to a
previous call of the operation.
</p>
</li>
<li>
<p>
INVALID_PATTERN: You provided a value that doesn't match the required pattern.
</p>
</li>
<li>
<p>
INVALID_PATTERN_TARGET_ID: You specified a policy target ID that doesn't match the required pattern.
</p>
</li>
<li>
<p>
INVALID_ROLE_NAME: You provided a role name that isn't valid. A role name can't begin with the reserved
prefix <code>AWSServiceRoleFor</code>.
</p>
</li>
<li>
<p>
INVALID_SYNTAX_ORGANIZATION_ARN: You specified an invalid Amazon Resource Name (ARN) for the
organization.
</p>
</li>
<li>
<p>
INVALID_SYNTAX_POLICY_ID: You specified an invalid policy ID.
</p>
</li>
<li>
<p>
MAX_FILTER_LIMIT_EXCEEDED: You can specify only one filter parameter for the operation.
</p>
</li>
<li>
<p>
MAX_LENGTH_EXCEEDED: You provided a string parameter that is longer than allowed.
</p>
</li>
<li>
<p>
MAX_VALUE_EXCEEDED: You provided a numeric parameter that has a larger value than allowed.
</p>
</li>
<li>
<p>
MIN_LENGTH_EXCEEDED: You provided a string parameter that is shorter than allowed.
</p>
</li>
<li>
<p>
MIN_VALUE_EXCEEDED: You provided a numeric parameter that has a smaller value than allowed.
</p>
</li>
<li>
<p>
MOVING_ACCOUNT_BETWEEN_DIFFERENT_ROOTS: You can move an account only between entities in the same root.
</p>
</li>
@throws OrganizationNotEmptyException
The organization isn't empty. To delete an organization, you must first remove all accounts except the
master account, delete all OUs, and delete all policies.
@throws ServiceException
AWS Organizations can't complete your request because of an internal service error. Try again later.
@throws TooManyRequestsException
You've sent too many requests in too short a period of time. The limit helps protect against
denial-of-service attacks. Try again later.</p>
<p>
For information on limits that affect Organizations, see <a
href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_reference_limits.html">Limits of
AWS Organizations</a> in the <i>AWS Organizations User Guide</i>.
@sample AWSOrganizations.DeleteOrganization
@see <a href="http://docs.aws.amazon.com/goto/WebAPI/organizations-2016-11-28/DeleteOrganization"
target="_top">AWS API Documentation</a>