How to delete pages in word document using UiPath

Other pages along with the ones mentioned in parameter are also getting deleted