Use correct route to delete index. Fixes #960.

(cherry picked from commit 1dc7ebfc26b5ef1f88e84702582715eb631202db)