Skip to content
Discussion options

You must be logged in to vote

When you delete a page, then pages coming after it are renumbered of course. The number is not a fixed property of a page, but like an index in a list.
After deleting 0 from the Python list [0, 1, 2, 3, 4, 5], 1 will be found at index 0 and you cannot delete it using index 1.
In order to delete pages by numbers contained in a list, make sure to sort that list and then start with deleting in reversed order: larger page numbers first.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@kahvecci
Comment options

@JorjMcKie
Comment options

Answer selected by kahvecci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants