delete_application ( $application_name, $opt )

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

You cannot delete an application that has a running environment.

Access

public

Parameters

Parameter

Type

Required

Description

$application_name

string

Required

The name of the application to delete.

$opt

array

Optional

An associative array of parameters that can have the following keys:

  • TerminateEnvByForce - boolean - Optional - When set to true, running environments will be terminated before deleting the application.
  • curlopts - array - Optional - A set of values to pass directly into curl_setopt(), where the key is a pre-defined CURLOPT_* constant.
  • returnCurlHandle - boolean - Optional - A private toggle specifying that the cURL handle be returned rather than actually completing the request. This toggle is useful for manually managed batch requests.

Returns

Type

Description

CFResponse

A CFResponse object containing a parsed HTTP response.

Examples

Delete an application.

// Instantiate the class
$bean = new AmazonElasticBeanstalk();

$response = $bean->delete_application('my-application');

// Success?
var_dump($response->isOK());
Result:
bool(true)

Related Methods

Source

Method defined in services/elasticbeanstalk.class.php | Toggle source view (7 lines) | View on GitHub

public function delete_application($application_name, $opt = null)
{
    if (!$opt) $opt = array();
    $opt['ApplicationName'] = $application_name;
    
    return $this->authenticate('DeleteApplication', $opt);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback