How to disable delete button

How can I disable the delete button on files in order to avoid removing files?

you may try to use the css to hide these buttons from the vault.
Like:
https://snippet.dhtmlx.com/zuz7ec9f