How can I hide delete button in modern team site library allitems.aspx page.

I don't want to remove delete permission.

Because I am planning to run a workflow on item deleting. So I am planning to hide default delete button and using list action I want to run a workflow.

Is there any solution to run a work flow on default delete button?

1 Answer 1


Except removing Delete permission, in general, we can consider using CSS/JavaScript code. However,currently, CSS/JavaScript is not supported for "modern" lists and libraries. So, except managing permissions, I am afraid there is not another way to hide Delete Button.

Customizing "modern" lists and libraries

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.