delete_application

ElasticBeanstalk.Client.delete_application(**kwargs)

Deletes the specified application along with all associated versions and configurations. The application versions will not be deleted from your Amazon S3 bucket.

Note

You cannot delete an application that has a running environment.

See also: AWS API Documentation

Request Syntax

response = client.delete_application(
    ApplicationName='string',
    TerminateEnvByForce=True|False
)
Parameters
  • ApplicationName (string) --

    [REQUIRED]

    The name of the application to delete.

  • TerminateEnvByForce (boolean) -- When set to true, running environments will be terminated before deleting the application.
Returns

None

Exceptions

  • ElasticBeanstalk.Client.exceptions.OperationInProgressException

Examples

The following operation deletes an application named my-app:

response = client.delete_application(
    ApplicationName='my-app',
)

print(response)

Expected Output:

{
    'ResponseMetadata': {
        '...': '...',
    },
}