In a Document/Form Library with versioning enabled (SP 2010), it is possible to delete all versions of a particular document/form simply by going to the "Version History" dialog box. This ability obviously could be unwelcome depending on business requirements for retaining sensitive data. How can I restrict the two link buttons to not be available to certain groups using SharePoint permissions or programmatically? Or just hide them in any way?

