'Removed all logs that are assigned to a given rest api id.'

def remove_api_gateway_logs(self, project_name):

    for rest_api in self.get_rest_apis(project_name):
        for stage in self.apigateway_client.get_stages(restApiId=rest_api['id'])['item']:
            self.remove_log_group('API-Gateway-Execution-Logs_{}/{}'.format(rest_api['id'], stage['stageName']))
