'Delete a KeyPair.
:param keypair: KeyPair to delete
:type  keypair: :class:`OpenStackKeyPair`
:rtype: ``bool``'

def delete_key_pair(self, key_pair):

    response = self.connection.request(('/os-keypairs/%s' % key_pair.name), method='DELETE')
    return (response.status == httplib.ACCEPTED)
