fixes #3178
added a separate delete method for RecordStore
cleanup & better renaming
fixed delete method bug
Merge pull request #3230 from buremba/fix-delete-call

fixes #3178