update index delete and fix delete in production