AerospikeClient Truncate Method Aerospike
Remove records in specified namespace/set efficiently. This method is many orders of magnitude faster than deleting records one at a time. Works with Aerospike Server versions >= 3.12.

This asynchronous server call may return before the truncation is complete. The user can still write new records after the server returns because new records will have last update times greater than the truncate cutoff (set at the time of truncate call).

Namespace: Aerospike.Client
Assembly: AerospikeClient (in AerospikeClient.dll) Version: 3.4.0.0 (3.4.2)
Syntax

Parameters

policy
Type: Aerospike.Client InfoPolicy
info command configuration parameters, pass in null for defaults
ns
Type: OnlineSystem String
required namespace
set
Type: OnlineSystem String
optional set name. Pass in null to delete all sets in namespace.
beforeLastUpdate
Type: OnlineSystem Nullable OnlineDateTime 
optionally delete records before record last update time. If specified, value must be before the current time. Pass in null to delete all records in namespace/set regardless of last update time.
See Also