wso2am/1.9.1/plugins/wso2am-startup-handler.py
def remove_data_from_metadata(self, key):
        """
        remove data from meta data service
        :return: void
        """
        mds_response = mdsclient.get(app=True)

        if mds_response is not None and mds_response.properties.get(key) is not None:
            read_data = mds_response.properties[key]
            check_str = isinstance(read_data, (str, unicode))

            if check_str == True:
                mdsclient.delete_property_value(key, read_data)
            else:
                check_int = isinstance(read_data, int)
                if check_int == True:
                    mdsclient.delete_property_value(key, read_data)
                else:
                    for entry in read_data:
                        mdsclient.delete_property_value(key, entry)

        remove data from meta data service
        :return: void
        
remove data from meta data service
remove data from meta data service
def remove_data_from_metadata(self, key):
        mds_response = mdsclient.get(app=True)
        if mds_response is not None and mds_response.properties.get(key) is not None:
            read_data = mds_response.properties[key]
            check_str = isinstance(read_data, (str, unicode))
            if check_str == True:
                mdsclient.delete_property_value(key, read_data)
            else:
                check_int = isinstance(read_data, int)
                if check_int == True:
                    mdsclient.delete_property_value(key, read_data)
                else:
                    for entry in read_data:
                        mdsclient.delete_property_value(key, entry)
def remove_data_from_metadata ( self , key ) : mds_response = mdsclient . get ( app = True ) if mds_response is not None and mds_response . properties . get ( key ) is not None : read_data = mds_response . properties [ key ] check_str = isinstance ( read_data , ( str , unicode ) ) if check_str == True : mdsclient . delete_property_value ( key , read_data ) else : check_int = isinstance ( read_data , int ) if check_int == True : mdsclient . delete_property_value ( key , read_data ) else : for entry in read_data : mdsclient . delete_property_value ( key , entry )
remove data from meta data service
remove data from meta data service
"""
        remove data from meta data service
        :return: void
        """
None
self
key