Site icon Hip-Hop Website Design and Development

Removing delete permanently button in uploading files media

How do I delete or remove the word Delete Permanently in uploading files?
I wanted to remove this permanently so that the users won’t keep deleting files which are not supposed to delete.

I use this code:

.button-link.delete-attachment{display:none}

But the problem of this, if the user uses the inspect element, they can just change it to display:block to show the delete button. Using CSS is not an option.

Is there a function code here to remove this? Or where can I find the core file in wp-admin folder, so that I could delete the <div> element manually?