Implemented index-based delete