Keep track of page index for deletion

fixes #574