How to remove key value from javascript object?

February 22, 2019 | Category : Javascript JQuery

Today's topic is how we can delete object key in javascript with example. if you require to remove key value from your existing jquery object then you can do it using delete operator. we can simply remove specific index from object array.

Object class have a delete operator. delete operator will allows to remove item from an object.

i will provide a three way to remove key value from json object.

1 Way:

delete jsonObj["0"];

2 Way:

var k = 0;

delete jsonObj[k];

3 Way:

delete jsonObj.myKey;

If you are a still didn't get how you can delete key from json object than you can bellow full example. i write full example for you to remove key.


<!DOCTYPE html>



<title>How to remove key value from javascript object? -</title>

<script src=""></script>



<script type="text/javascript">

var jsonObj = {

'0' : {'title': '', 'description': ''},

'1' : {'title': '', 'description': ''}


delete jsonObj['0'];





I hope you found your best solution...