LDD Today

Tips from LDD

Enabling soft deletions in your Notes mail file


Tip submitted by
Tim Speed and David Byrd

Level: Intermediate
Works with: Notes/Domino
Updated: 15-Sep-2003

Most developers and users have heard about soft deletions, but we find it surprising how many people have not yet enabled their Notes mail files to use this feature.

Here are the steps to enable soft deletions. These steps apply to both Notes 5 and 6 clients, but by default, soft deletions are enabled in the standard and extended Notes 6 mail templates, mail6.ntf and mail6ex.ntf respectively.

Note that there were several issues reported about soft deletions in R5 that were fixed in R5.0.9 and later. You may want to refer to this list of related technotes on the Lotus Support Services Web site for more information about those issues.

The ($SoftDeletions) view has two action buttons: Permanently Remove and Restore. You can use these buttons to manipulate deleted documents. However, you cannot move the documents to a folder or copy the documents.

Notes 5 soft deletion action bar

These action buttons call agents that use the R5 @functions @HardDeleteDocument and @UndeleteDocument. In the following screen of a Notes 6 mail file, the action buttons call agents that use the @functions @Command([EditClear]) and @Command([EditRestoreDocument]). The latter @function is new to Notes/Domino 6.

Notes 6 soft deletion action bar

See the Domino Designer help for more information about these @functions.

Finally, test the soft delete functionality. Delete a test document, and then open your Soft Deletion view. You should see the documents that you just deleted. In 48 hours (or the value you set), the documents will be permanently removed from the database.