Question: I am trying to copy contents of a span element but I failed so far with no error in chrome:

```js
const element = document.getElementById("element");
 console.log(element.innerHTML); //consoles Data
 //below doesn't copy contents of the element to clipboard
 const node = document.createRange();
 node.selectNode(element);
 window.getSelection().removeAllRanges();
 window.getSelection().addRange(node);
 document.execCommand("copy");
```

```html
 <span id="element">Data</span>
```

Since I can see contents of the element via innerHTML, I am thinking the element is indeed accessible. Why cant I copy the text?

Answer: 
I was able to fix this in Linux by deleting the flutter\_app\_directory found in
~/.local/share/<flutter\_app\_name>

Similar actions can be found in Windows and MacOS
or you call clear() as seen in the [readme](https://pub.dev/packages/hive)

```
// Create a box collection
  final collection = await BoxCollection.open(
    'MyFirstFluffyBox', // Name of your database
    {'cats', 'dogs'}, // Names of your boxes
    path: './', // Path where to store your boxes (Only used in Flutter / Dart IO)
    key: HiveCipher(), // Key to encrypt your boxes (Only used in Flutter / Dart IO)
  );

  // Open your boxes. Optional: Give it a type.
  final catsBox = collection.openBox<Map>('cats');

  // Put something in
  await catsBox.put('fluffy', {'name': 'Fluffy', 'age': 4});
  await catsBox.put('loki', {'name': 'Loki', 'age': 2});

  // Get values of type (immutable) Map?
  final loki = await catsBox.get('loki');
  print('Loki is ${loki?['age']} years old.');

  // Returns a List of values
  final cats = await catsBox.getAll(['loki', 'fluffy']);
  print(cats);

  // Returns a List<String> of all keys
  final allCatKeys = await catsBox.getAllKeys();
  print(allCatKeys);

  // Returns a Map<String, Map> with all keys and entries
  final catMap = await catsBox.getAllValues();
  print(catMap);

  // delete one or more entries
  await catsBox.delete('loki');
  await catsBox.deleteAll(['loki', 'fluffy']);

  // ...or clear the whole box at once
  await catsBox.clear(); //<----------------------------------------------

  // Speed up write actions with transactions
  await collection.transaction(
    () async {
      await catsBox.put('fluffy', {'name': 'Fluffy', 'age': 4});
      await catsBox.put('loki', {'name': 'Loki', 'age': 2});
      // ...
    },
    boxNames: ['cats'], // By default all boxes become blocked.
    readOnly: false,
  );

```