The same questions were asked on the community previously, and you can find those questions here, here, here, and here. Please refer to those articles so to be able to hide a button.
And
There were a couple of similar requests on our community. You can find the solutions here:
But seems like, the shared community articles are irrelevant to what we raised. Those articles describe hiding the new button itself. But the requirement for us is to keep the new button and just hide one or more pages from the new button drop-down when there are more pages in that particular section. Kindly double-check and help us resolve this issue.
You only need tp modify the "Website" in the code with the caption of the edit page you need to remove from the "New" option. After that refresh the page and the menu item will be removed. Debug the execution of the example above and add your own logic if needed.
How to hide page from the "New" button. I need page itself and I don't want to deactivate or delete it. Just need to hide it from the button so users are not able to register new requests using that page.
The same questions were asked on the community previously and you can find those questions here, here, here, and here. Please refer to those articles so to be able to hide a button.