Remove the back button and deleting history

There are some pages that I do not want to have back button code:

<ion-view title="" hide-back-button="true">

does not work for me.
I’m going crazy, sometimes the button appears and sometimes not.
I also want to remove a specific page history, if they click the back button the app will close
this code not work: