Implement cleanAllPages method