'Create a Gate operation that will delete an existing application.
Args:
application: [string] Name of application to create.
account_name: [string] Spinnaker account deleting the application.
Returns:
AgentOperation.'

def make_delete_app_operation(self, application, account_name):

    payload = self.make_json_payload_from_kwargs(job=[{'type': 'deleteApplication', 'account': account_name, 'application': {'name': application}, 'user': '[anonymous]'}], description=('Delete    Application:    ' + application), application=application)
    return self.new_post_operation(title='delete_app', data=payload, path='tasks')
