In my scenario, I have a multi page pdf. There is a page that starts with a specific phrase "Page C". I need to delete that page, and all other following pages until it reaches another specific phrase "Page D".
Yes, this can be achieved using a script, but it's not a very trivial task. You would need to write a loop that iterates over all the words of all the pages looking for the "Page C" string, and then continue until you find the "Page D" string. Then you delete the pages in between.
You would also need to decide what to do if the second string is not found.