db del

API Ref

db del
	[-auto_commit]
	[-glob]
	[-txn txnid]
	key

Description(db del)

The db del command removes key/data pairs from the database.

In the presence of duplicate key values, all records associated with the designated key will be discarded.

The options are as follows:

-auto_commit
Enclose the call within a transaction. If the call succeeds, changes made by the operation will be recoverable. If the call fails, the operation will have made no changes.
-glob
The specified key is a wildcard pattern, and all keys matching that pattern are discarded from the database. The pattern is a simple wildcard, any characters after the wildcard character are ignored. This option only works on databases using the Btree access method.
-txn txnid
If the operation is to be transaction-protected (other than by specifying the -auto_commit flag), the txnid parameter is a transaction handle returned from env txn.

The db del command returns 0 on success, and in the case of error, a Tcl error is thrown.


APIRef

Copyright (c) 1996-2004 Sleepycat Software, Inc. - All rights reserved.