Files
lightning/doc/lightning-deldatastore.7.md
Rusty Russell e711f6c589 datastore: allow strings.
It's common, and the simplest case.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2021-08-25 10:06:31 +02:00

1.2 KiB

lightning-deldatastore -- Command for removing (plugin) data

SYNOPSIS

deldatastore key

DESCRIPTION

The deldatastore RPC command allows plugins to delete data it has stored in the c-lightning database.

The command fails if the key isn't present.

RETURN VALUE

On success, an object is returned, containing:

  • key (string): The key which has been removed from the datastore
  • hex (hex): The hex data which has removed from the datastore
  • string (string, optional): The data as a string, if it's valid utf-8 comment: # (GENERATE-FROM-SCHEMA-END)

The main cause of failure is an non-existing entry.

The following error codes may occur:

  • -32602: invalid parameters, including non-existing key.

AUTHOR

Rusty Russell <rusty@rustcorp.com.au> is mainly responsible.

SEE ALSO

lightning-listdatastore(7), lightning-datastore(7)

RESOURCES

Main web site: https://github.com/ElementsProject/lightning