DeleteApplicationCommand

Deletes an application.

Example Syntax

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

import { CodeDeployClient, DeleteApplicationCommand } from "@aws-sdk/client-codedeploy"; // ES Modules import
// const { CodeDeployClient, DeleteApplicationCommand } = require("@aws-sdk/client-codedeploy"); // CommonJS import
const client = new CodeDeployClient(config);
const input = { // DeleteApplicationInput
  applicationName: "STRING_VALUE", // required
};
const command = new DeleteApplicationCommand(input);
const response = await client.send(command);
// {};

DeleteApplicationCommand Input

See DeleteApplicationCommandInput for more details

Parameter
Type
Description
applicationName
Required
string | undefined

The name of an CodeDeploy application associated with the user or Amazon Web Services account.

DeleteApplicationCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

Name
Fault
Details
ApplicationNameRequiredException
client

The minimum number of required application names was not specified.

InvalidApplicationNameException
client

The application name was specified in an invalid format.

InvalidRoleException
client

The service role ARN was specified in an invalid format. Or, if an Auto Scaling group was specified, the specified service role does not grant the appropriate permissions to Amazon EC2 Auto Scaling.

CodeDeployServiceException
Base exception class for all service exceptions from CodeDeploy service.