def keypair_delete(self, name, ignore_exceptions=False):
        try:
            self.openstack('keypair delete ' + name)
        except exceptions.CommandFailed:
            if not ignore_exceptions:
                raise
Try to delete keypair by name.
dataset/ETHPy150Open dtroyer/python-openstackclient/functional/tests/compute/v2/test_keypair.py/KeypairBase.keypair_delete