remove a key in js code example Example 1: javascript remove element from object delete object.element Example 2: nodejs delete object key delete obj.firstname;