'Delete an ssh key or password given it\'s id'

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)
