DB.del

Deletes a key from the db

class DB
void
del
(
T
)
(
in T key
,
const(WriteOptions) opt = DefaultWriteOptions
)

Throws

LeveldbException

Examples

1 auto opt = new Options;
2 opt.create_if_missing = true;
3 auto db = new DB(opt, "/my/db/");
4 db.put("User1", Slice("John Doe"));
5 db.del("User1");

Meta