def delete_task(self, task_name):
        '''
        Delete a task from the platforms regoistry
        :param task_name: name of the task to delete
        '''
        response = self.session.delete('%s/%s' % (self.task_url, task_name))

        if response.status_code == 200:
            return response.status_code, 'Task %s deleted' % task_name
        elif response.status_code == 400:
            return response.status_code, None  # Task isn't registered.
        else:
            return response.status_code, 'Task %s was not deleted: %s' % (task_name, response.text)
def delete_task(self, task_name):
        '''
        Delete a task from the platforms regoistry
        :param task_name: name of the task to delete
        '''
        response = self.session.delete('%s/%s' % (self.task_url, task_name))

        if response.status_code == 200:
            return response.status_code, 'Task %s deleted' % task_name
        elif response.status_code == 400:
            return response.status_code, None  # Task isn't registered.
        else:
            return response.status_code, 'Task %s was not deleted: %s' % (task_name, response.text)
def delete_task ( self , task_name ) : response = self . session . delete ( '%s/%s' % ( self . task_url , task_name ) ) if response . status_code == 200 : return response . status_code , 'Task %s deleted' % task_name elif response . status_code == 400 : return response . status_code , None # Task isn't registered. else : return response . status_code , 'Task %s was not deleted: %s' % ( task_name , response . text )
Delete a task from the platforms regoistry
        :param task_name: name of the task to delete
Delete a task from the platforms regoistry : param task_name : name of the task to delete