remove field from json javascript code example Example 1: remove json javascript delete myObj.test.key1; Example 2: nodejs delete object key delete obj.firstname;