func (c *RawKVClient) Delete(key []byte) error {
	req := &kvrpcpb.Request{
		Type: kvrpcpb.MessageType_CmdRawDelete,
		CmdRawDeleteReq: &kvrpcpb.CmdRawDeleteRequest{
			Key: key,
		},
	}
	resp, err := c.sendKVReq(key, req)
	if err != nil {
		return errors.Trace(err)
	}
	cmdResp := resp.GetCmdRawDeleteResp()
	if cmdResp == nil {
		return errors.Trace(errBodyMissing)
	}
	if cmdResp.GetError() != "" {
		return errors.New(cmdResp.GetError())
	}
	return nil
}
// Delete deletes a key-value pair from TiKV.
Delete deletes a key-value pair from TiKV.
// Delete deletes a key - value pair from TiKV .
func (c *RawKVClient) Delete(key []byte) error {
	req := &kvrpcpb.Request{
		Type: kvrpcpb.MessageType_CmdRawDelete,
		CmdRawDeleteReq: &kvrpcpb.CmdRawDeleteRequest{
			Key: key,
		},
	}
	resp, err := c.sendKVReq(key, req)
	if err != nil {
		return errors.Trace(err)
	}
	cmdResp := resp.GetCmdRawDeleteResp()
	if cmdResp == nil {
		return errors.Trace(errBodyMissing)
	}
	if cmdResp.GetError() != "" {
		return errors.New(cmdResp.GetError())
	}
	return nil
}
func ( c * RawKVClient ) Delete ( key [ ] byte ) error { req := & kvrpcpb . Request { Type : kvrpcpb . MessageType_CmdRawDelete , CmdRawDeleteReq : & kvrpcpb . CmdRawDeleteRequest { Key : key , } , } resp , err := c . sendKVReq ( key , req ) if err != nil { return errors . Trace ( err ) } cmdResp := resp . GetCmdRawDeleteResp ( ) if cmdResp == nil { return errors . Trace ( errBodyMissing ) } if cmdResp . GetError ( ) != " " { return errors . New ( cmdResp . GetError ( ) ) } return nil }
Delete deletes a key-value pair from TiKV.
Delete deletes a key - value pair from TiKV .