Menu
AWS Elastic Beanstalk
Developer Guide (API Version 2010-12-01)

delete

Note

This version of the EB CLI and its documentation have been replaced with version 3. Version 3 has different commands and is not backwards compatible with version 2. For information on the new version, see The Elastic Beanstalk Command Line Interface (EB CLI).

Description

Deletes the current application, or an application you specify, along with all associated environments, versions, and configurations. For a tutorial that includes a description of how to use eb delete to delete an application, see Getting Started with Eb.

Note

The delete operation applies to an application and all of its environments. To stop only a single environment rather than an entire application, use eb stop.

Syntax

eb delete

Options

Name

Description

Required

-a

or

--application-name APPLICATION_NAME

The application that you want to delete. If you do not use this option, eb will delete the application currently specified in .elasticbeanstalk/optionsettings. To verify your current settings, run eb init (the current values will be displayed; press Enter at each prompt to keep the current value).

Type: String

Default: Current setting

No

Common options

For more information, see Eb Common Options.

No

Output

If successful, the command returns confirmation that the application was deleted.

Example

The following example request deletes the specified application and all of its environments. Replace the red placeholder text with your own values.

PROMPT> delete -a MyApp

Delete application? [y/n]: y
Deleted application "MyApp".