title: Error While deleting Path Range Index
body: <p>I am getting below exception when trying to delete a non-string path range index:-</p>
  
  <blockquote>
    <p>ADMIN-NOSUCHITEM: (err:FOER0000) Range Index does not exist.</p>
  </blockquote>
  
  <p>But I can see that index in database.</p>
  
  <p>I have used delete-range-path-index query to delete the index. This is happening for non- string index. </p>
  
  <p>Below Query is used to delete the Path range index:-</p>
  
  <pre><code>import module namespace admin = "http://marklogic.com/xdmp/admin"
        at "/MarkLogic/admin.xqy";
  let $database := xdmp:database("test")
  let $admin-config := admin:get-configuration()
  for $index in admin:database-get-range-path-indexes($admin-config, $database)
  return admin:database-delete-range-path-index($admin-config, $database, $index)
  </code></pre>
  
  <p>Yes, I used xdmp:set() function to update the admin config so that subsequent calls can use the updated config. But still getting the same error and this is happening when it tries to delete non-string index. When I tried deleting only single non-string index, I got the same Exception. </p>
  
  <p>We are using marklogic version:- 8.0-5.9</p>