I have a local Datastore emulator instance running on my local machine (Mac OSX 10.11.6).
I have a bunch of data in there already, but I want to remove all data from the local database to start with a clean slate.
However I have already tried deleting the directory (where I thought) the data was being stored.
This message appears when starting the emulator.
WARNING: Reusing existing data in [/Users/myusername/.config/gcloud/emulators/datastore].
I deleted the entire datastore directory and it seems to be re-generated properly when the emulator is restarted. However, the old data is still there.
rm -rf /Users/myusername/.config/gcloud/emulators/datastore
I also confirmed that my Node App is connecting to the local emulator.
myusername$ $(gcloud beta emulators datastore env-init)
myusername$ gcloud beta emulators datastore env-init
export DATASTORE_DATASET=projectname
export DATASTORE_EMULATOR_HOST=localhost:8081
export DATASTORE_EMULATOR_HOST_PATH=localhost:8081/datastore
export DATASTORE_HOST=http://localhost:8081
export DATASTORE_PROJECT_ID=projectname