$.indexeddb(db).objectStore(objectStore).remove(id).then(write, err);