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