Add shard deletion
This MR adds POST /indexer/delete/ID
action to the indexer so that we can properly clean shards after the project is deleted.
Relates to gitlab#389760 (closed)
How to test
- Run
make run listen=:6061
- Create zoekt shard files
touch tmp/indexer/700_v16.00000.zoekt
andtouch tmp/indexer/7_v16.00000.zoekt
- Execute
curl -XPOST http://127.0.0.1:6061/indexer/delete/7
- Ensure that
ls -al tmp/indexer
returns only700_v16.00000.zoekt
Edited by Dmitry Gruzd