code: def remove_api_key(self, api_id, stage_name):
          
          response = self.apigateway_client.get_api_keys(
              limit=1,
              nameQuery='{}_{}'.format(stage_name, api_id)
          )
          for api_key in response.get('items'):
              self.apigateway_client.delete_api_key(
                  apiKey="{}".format(api_key['id'])
              )
docs: Remove a generated API key for api_id and stage_name