diff --git a/src/rx-collection.ts b/src/rx-collection.ts index 534cfdc8594..8043116f67a 100644 --- a/src/rx-collection.ts +++ b/src/rx-collection.ts @@ -928,6 +928,10 @@ export class RxCollectionBase< async remove(): Promise { await this.destroy(); await Promise.all(this.onRemove.map(fn => fn())); + /** + * TODO here we should pass the already existing + * storage instances instead of creating new ones. + */ await removeCollectionStorages( this.database.storage, this.database.internalStore,