def ex_delete_keypair(self, key_id, ssh=False):
        if ssh:
            result = self.connection.request('/key/sshrsa/%s/' % key_id,
                                             method='DELETE').object
        else:
            result = self.connection.request('/key/password/%s/' % key_id,
                                             method='DELETE').object
        return result.get('response') in VALID_RESPONSE_CODES
Delete an ssh key or password given it's id
dataset/ETHPy150Open apache/libcloud/libcloud/compute/drivers/nephoscale.py/NephoscaleNodeDriver.ex_delete_keypair