¿Cómo eliminar datos de un objeto usando el almacenamiento de Chrome?
Tengo un objeto almacenado dentro del almacenamiento de Chrome que se ve así:
{
"planA":
{
123: {key: 'some key'}
124: {key: 'some other key'}
},
"planB":
{
223: {key: 'some key'}
234: {key: 'some other key'}
}
}
quiero hacer algo comochrome.storage.sync.remove([{"planA": "123"}]);
pero eso parece no funcionarError in response to storage.get: Error: Invalid value for argument 1. Value does not match any valid type choices.
desde eldocumentación StorageArea.remove(string or array of string keys, function callback)
ideas de hormigas?