#NEWLINE# def delete_application( self , resource_group_name , account_name , application_id , custom_headers = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , raw = False , **operation_config ) : #NEWLINE# #INDENT# '\n        Deletes an application.\n\n        :param resource_group_name: The name of the resource group that\n         contains the Batch account.\n        :type resource_group_name: str\n        :param account_name: The name of the Batch account.\n        :type account_name: str\n        :param application_id: The id of the application.\n        :type application_id: str\n        :param dict custom_headers: headers that will be added to the request\n        :param bool raw: returns the direct response alongside the\n         deserialized response\n        :param operation_config: :ref:`Operation configuration\n         overrides<msrest:optionsforoperations>`.\n        :rtype: None\n        :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`\n         if raw=true\n        ' #NEWLINE# url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Batch/batchAccounts/{accountName}/applications/{applicationId}' #NEWLINE# path_format_arguments = { #NEWLINE# #INDENT# 'resourceGroupName' : self . _serialize . url ( 'resource_group_name' , resource_group_name , 'str' , pattern = '^[-\\w\\._]+$' ) , #NEWLINE# 'accountName' : self . _serialize . url ( 'account_name' , account_name , 'str' , max_length = 24 , min_length = 3 , pattern = '^[-\\w\\._]+$' ) , #NEWLINE# 'applicationId' : self . _serialize . url ( 'application_id' , application_id , 'str' ) , #NEWLINE# 'subscriptionId' : self . _serialize . url ( 'self.config.subscription_id' , self . config . subscription_id , 'str' ) , #NEWLINE# #UNINDENT# } #NEWLINE# url = self . _client . format_url ( url , ** path_format_arguments ) #NEWLINE# query_parameters = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# query_parameters [ 'api-version' ] = self . _serialize . query ( 'self.config.api_version' , self . config . api_version , 'str' ) #NEWLINE# header_parameters = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# header_parameters [ 'Content-Type' ] = 'application/json; charset=utf-8' #NEWLINE# if self . config . generate_client_request_id : #NEWLINE# #INDENT# header_parameters [ 'x-ms-client-request-id' ] = str ( uuid . uuid1 ( ) ) #NEWLINE# #UNINDENT# if custom_headers : #NEWLINE# #INDENT# header_parameters . update ( custom_headers ) #NEWLINE# #UNINDENT# if ( self . config . accept_language is not None ) : #NEWLINE# #INDENT# header_parameters [ 'accept-language' ] = self . _serialize . header ( 'self.config.accept_language' , self . config . accept_language , 'str' ) #NEWLINE# #UNINDENT# request = self . _client . delete ( url , query_parameters ) #NEWLINE# response = self . _client . send ( request , header_parameters , ** operation_config ) #NEWLINE# if ( response . status_code not in [ 204 ] ) : #NEWLINE# #INDENT# exp = CloudError ( response ) #NEWLINE# exp . request_id = response . headers . get ( 'x-ms-request-id' ) #NEWLINE# raise exp #NEWLINE# #UNINDENT# if raw : #NEWLINE# #INDENT# client_raw_response = ClientRawResponse ( None , response ) #NEWLINE# return client_raw_response