Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DeleteOrganizationCommand

Deletes the organization. You can delete an organization only by using credentials from the management account. The organization must be empty of member accounts.

example

Use a bare-bones client and the command you need to make an API call.

import { OrganizationsClient, DeleteOrganizationCommand } from "@aws-sdk/client-organizations"; // ES Modules import
// const { OrganizationsClient, DeleteOrganizationCommand } = require("@aws-sdk/client-organizations"); // CommonJS import
const client = new OrganizationsClient(config);
const command = new DeleteOrganizationCommand(input);
const response = await client.send(command);
see

DeleteOrganizationCommandInput for command's input shape.

see

DeleteOrganizationCommandOutput for command's response shape.

see

config for OrganizationsClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: DeleteOrganizationCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions