'Delete an existing SSH key.
:param      key: SSH key (required)
:type       key: :class:`KeyPair`'

def delete_key_pair(self, key):

    key_id = key.extra['id']
    res = self.connection.request(('/v2/account/keys/%s' % key_id), method='DELETE')
    return (res.status == httplib.NO_CONTENT)
