'Delete an existing key pair.
:param key_pair: Key pair object or ID.
:type key_pair: :class.KeyPair` or ``int``
:return:   True of False based on success of Keypair deletion
:rtype:    ``bool``'

def delete_key_pair(self, key_pair):

    key_id = (key_pair if isinstance(key_pair, int) else key_pair.extra['id'])
    success = self.connection.request('hosting.ssh.delete', key_id).object
    return success
