You can remove a property from a JavaScript object with the delete operator.
And it’s super easy:
delete object.property
var Car = {
make: "Mazda",
model: "CX-5",
year: "2014"
};
console.log(Car.year);
// expected output: "2014"
delete Car.year;
console.log(Car.year);
// expected output: undefined
For more information:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete