Closed chrismytton closed 9 years ago
One thing this doesn't do is remove the elastic search indexes so if you delete a collection and then do /search/persons it will still return things.
The deleting from mongo side looks fine though.
Oooh, good point. Shouldn't be too tricky to just drop the whole index for a given instance I don't suppose.
This allows you to remove all the people, organizations, memberships and posts from an instance in one go. Alternatively you can just remove the records from an individual collection.
Fixes https://github.com/mysociety/popit/issues/464