2018-10-12 15:37:13 -04:00
---
title: Use the delete Keyword to Remove Object Properties
---
2019-07-24 00:59:27 -07:00
# Use the delete Keyword to Remove Object Properties
2018-10-12 15:37:13 -04:00
2019-07-24 00:59:27 -07:00
---
## Solutions
< details > < summary > Solution 1 (Click to Show/Hide)< / summary >
2018-10-12 15:37:13 -04:00
```javascript
let foods = {
apples: 25,
oranges: 32,
plums: 28,
bananas: 13,
grapes: 35,
strawberries: 27
};
// change code below this line
delete foods.oranges;
delete foods.plums;
delete foods.strawberries;
// change code above this line
console.log(foods);
```
2019-07-24 00:59:27 -07:00
#### Relevant Links
* [Developer.mozilla.org ](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/delete ) provides a comprehensive tutorial on the delete operator.
< / details >