Can i disappear the save report button from action menu in interactive report in oracle apex?

I have an interactive gride page. i want to hide SAVE button in action menu to prevent user to save report as default or primary report
i have tried to do that using page item be hidden contain value = Y and make dynamic action on it execute JavaScript code. this is the code

function(config) {
  config.initActions = function( actions ) {
    $(() => {
      if ( $v("P3_NEW") === "Y" ) {
        apex.region("todo").widget().interactiveGrid("getActions").hide("save-report");
        apex.region("todo").widget().interactiveGrid("getActions").hide("show-save-report-as-dialog");
        apex.region("todo").widget().interactiveGrid("getActions").hide("show-edit-report-dialog");
      }
    });
  }
  return config;
}```
Can anyone help me to do this in interactive gride and also in interactive report?