How to make the Delete key to refuse delete?

Is it possible to prevent deletion of a file in EPDM via API?

I want use hook command EdmCmd_PreDelete(A file is about to be deleted) to check some user sequrity settings and if the selected file is referenced to other document(s)?

GeirDa

SolidworksSolidworks Pdm enterprise Pdm