(self, api_id)
Remove an External API from the listing.

        :param text_type api_id: the id of the API instance
            e.g 3845-39583, cloudfiles-mimic
Remove an External API from the listing.
Remove an External API from the listing .
def remove_external_api(self, api_id):
        """
        Remove an External API from the listing.

        :param text_type api_id: the id of the API instance
            e.g 3845-39583, cloudfiles-mimic
        """
        if api_id in self._uuid_to_api_external:
            api = self._uuid_to_api_external[api_id]

            if len(api.list_templates()) == 0:
                del self._uuid_to_api_external[api_id]
            else:
                raise ServiceHasTemplates("API still has endpoint templates")
        else:
            raise ServiceDoesNotExist(api_id + " is not a valid external API")
def remove_external_api ( self , api_id ) : if api_id in self . _uuid_to_api_external : api = self . _uuid_to_api_external [ api_id ] if len ( api . list_templates ( ) ) == 0 : del self . _uuid_to_api_external [ api_id ] else : raise ServiceHasTemplates ( "API still has endpoint templates" ) else : raise ServiceDoesNotExist ( api_id + " is not a valid external API" )