move datastore delete into package 'internal'