How to disable retry button on pipeline fail

Is there any way to disable those buttons?

image
image

My pipeline needs all previous steps to be run not just the failed tasks

I am also interested on this if there is any way to disable the retry button for a failed job!

is it possible to do this?