UndeleteExpireTime (NotesDatabase - JavaScript)

Read-write. The number of hours before soft deletions become hard deletions.

Defined in

NotesDatabase

Syntax

getUndeleteExpireTime() : int

setUndeleteExpireTime(hours:int) : void

Usage

This property corresponds to "Soft delete expire time in hours" in the database advanced properties of the UI.

The database must be open to use this property.

Examples

This agent cycles the expiration time for soft deletions from 24 to 48 to 72 hours.
var uet:int = database.getUndeleteExpireTime();
if (uet > 71) {
	database.setUndeleteExpireTime(24);
} else {
	database.setUndeleteExpireTime(uet + 24);
}
requestScope.status = "UndeleteExpireTime = " + database.getUndeleteExpireTime();