reset index when deleting word