Example   Source
  Menu  | 
 |  Run as  
The onBeforeFileDeleted event can be used to restrict a users ability to delete files. In the example users are unable to delete files less than 10 days old. There is a message property as part of the handler arguments which can be used to notify users with details of the restriction.