how can i delete a single field in a document in couch db?

I googled and searched in stackoverflow.There I find this :

db.get('id', function (err, doc) {
   var inside_key_values = doc.key_value_pair;

   delete inside_key_values[key_to_delete];

   db.merge("document", {
         key_value_pair: inside_key_values
        }, function (err, res) {
         console.log('New key value pairs saved')
      });

 });

In this,how can i replace doc.key_value_pair with my field.My field is like tradeinfo : "Something that we enter", Under certain case I have to delete this field(Key - value pair).Is that above code works..?

Thanks in advance.....

 First we have to get the document from database
 After that delete the required field using delete operator and then update the document like

  delete doc.tradeinfo;

Here tradeinfo is the field that I want to delete in the document(doc)