rm index write