def delete(self, key, dir=False, recursive=False,<EOL>prev_value=None, prev_index=None, timeout=None):
url = self.make_key_url(key)<EOL>params = self.build_args({<EOL>'<STR_LIT>': (bool, dir or None),<EOL>'<STR_LIT>': (bool, recursive or None),<EOL>'<STR_LIT>': (six.text_type, prev_value),<EOL>'<STR_LIT>': (int, prev_index),<EOL>})<EOL>try:<EOL><INDENT>res = self.session.delete(url, params=params, timeout=timeout)<EOL><DEDENT>except:<EOL><INDENT>self.erred()<EOL><DEDENT>return self.wrap_response(res)<EOL>
Requests to delete a node by the given key.