native

nvault_prune

Syntax

native nvault_prune(vault, start, end);

Description

Prunes the vault for entries that are within the given timestamps.

Parameters

vault A vault handle returned from nvault_open()
start The timestamp to start erasing from
end The timestamp to erase to

Note

This will not erase values set with nvault_pset().

Note

An example of pruning all entries that are older than 24 hours:
nvault_prune(vaultHandle, 0, get_systime() - (60 * 60 * 24));

Return

Number of erased values.

Error

On invalid vault handle.