deleting first n records in store added (C++ and JS)
store.clear() added