'Deletes the specified application along with all associated
versions and configurations. The application versions will not
be deleted from your Amazon S3 bucket.
:type application_name: string
:param application_name: The name of the application to delete.
:type terminate_env_by_force: boolean
:param terminate_env_by_force: When set to true, running
environments will be terminated before deleting the application.
:raises: OperationInProgressException'

def delete_application(self, application_name, terminate_env_by_force=None):

    params = {'ApplicationName': application_name}
    if terminate_env_by_force:
        params['TerminateEnvByForce'] = self._encode_bool(terminate_env_by_force)
    return self._get_response('DeleteApplication', params)
