#NEWLINE# def undeploy_api_gateway( self , project_name ) : #NEWLINE# #INDENT# '\n        Delete a deployed REST API Gateway.\n\n        Returns\n\n        ' #NEWLINE# print ( 'Deleting API Gateway..' ) #NEWLINE# client = self . boto_session . client ( 'apigateway' ) #NEWLINE# all_apis = client . get_rest_apis ( limit = 500 ) #NEWLINE# for api in all_apis [ 'items' ] : #NEWLINE# #INDENT# if ( api [ 'name' ] != project_name ) : #NEWLINE# #INDENT# continue #NEWLINE# #UNINDENT# response = client . delete_rest_api ( restApiId = api [ 'id' ] ) #NEWLINE# #UNINDENT# return