Displaying and restoring soft-deleted documents
Documents in the 'soft delete' state do not display in typical views and folders. Instead, you must create a shared view to contain and display documents in the soft deletion state. In this view, you can provide the user with an action programmed to un-delete documents and restore them to the database. In the Notes client, you can program the action with the formula @UndeleteDocument. In the Notes client, the "Remove from Trash" action in the Trash folder restores deleted mail messages.
A user can permanently delete documents from the Trash folder by selecting one or more documents and choosing Edit - Delete or by pressing the DEL key. You could also provide an action that uses the @HardDeleteDocument command to permanently remove documents from the Trash folder. For an example of this, see the "Empty Trash" action in the Trash folder.