IAerospikeClient 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.

See Onlinehttps://www.aerospike.com/docs/reference/info#truncate

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: 4.0.0.0 (4.0.0)
Syntax

Parameters

policy
Type: Aerospike.Client InfoPolicy
info command configuration parameters, pass in null for defaults
ns
Type: System String
required namespace
set
Type: System String
optional set name. Pass in null to delete all sets in namespace.
beforeLastUpdate
Type: System Nullable DateTime 
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