Hide page numbers on last pages

Hi dear people.

On the last pages of my book, credits & tables of content, I’s like to hide the page numbers on the bottom of the page. I chose N/A because it stands (Include only the main text, based on its appearance in the editor) but still in the exported PDF the page number is there. How can I solve this problem?
Thanks a lot!!