In the chrome storage, I have an object structured as follows:
{
"planA":
{
123: {key: 'some key'}
124: {key: 'some other key'}
},
"planB":
{
223: {key: 'some key'}
234: {key: 'some other key'}
}
}
I am attempting to use
chrome.storage.sync.remove([{"planA": "123"}]);
However, this method does not seem to be effective as it results in the following error message:
Error in response to storage.get: Error: Invalid value for argument 1. Value does not match any valid type choices.
Referring to the official documentation, we find that the correct syntax is
StorageArea.remove(string or array of string keys, function callback)
Any suggestions on how to address this issue?