Как удалить Prperty или объект в Javscript
delete object['property'];
//or
delete object.property;
// or
const name = 'dynamicProperty';
delete object[name];
Lucky Llama
delete object['property'];
//or
delete object.property;
// or
const name = 'dynamicProperty';
delete object[name];