Use correct route to delete index. Fixes #960.