This tutorial will help you to remove property of a JavaScript object using ‘delete’ operator. On successful deletion, it will return true, else false will be returned. It removes the property value as well as an object property. Remove JavaScript Object Property For this example, we have created an object with some default values.
1 2 3 4 5 | var obj = { "webid": "101", "webname": "TecAdmin", "domain": "www.example.com" }; |
Now, use the delete operator to delete the specific property from the JavaScript object.
1 | delete obj.domain; |
Similarly, you can also use the following syntax with the delete operator.
1 | delete obj['domain']; |
Example to Remove JavaScript Object Property Below is a working example of removing the property from a…



