5

次のようなオブジェクトがクロムストレージ内に保存されています。

{
    "planA": 
    {
        123: {key: 'some key'}
        124: {key: 'some other key'}
    },
    "planB": 
    {
        223: {key: 'some key'}
        234: {key: 'some other key'}
    }
}

私は何かをしたいchrome.storage.sync.remove([{"planA": "123"}]);

しかし、それはうまくいかないようですError in response to storage.get: Error: Invalid value for argument 1. Value does not match any valid type choices.

ドキュメントから StorageArea.remove(string or array of string keys, function callback)

アリのアイデア?

4

1 に答える 1