2021-08-25 04:50:12 +02:00
|
|
|
lightning-deldatastore -- Command for removing (plugin) data
|
|
|
|
============================================================
|
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
|
2022-01-26 18:18:49 +01:00
|
|
|
**deldatastore** *key* [*generation*]
|
2021-08-25 04:50:12 +02:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
|
|
|
The **deldatastore** RPC command allows plugins to delete data it has
|
2022-04-06 07:09:48 +02:00
|
|
|
stored in the Core Lightning database.
|
2021-08-25 04:50:12 +02:00
|
|
|
|
2021-08-25 04:51:04 +02:00
|
|
|
The command fails if the *key* isn't present, or if *generation*
|
|
|
|
is specified and the generation of the data does not exactly match.
|
2021-08-25 04:50:12 +02:00
|
|
|
|
|
|
|
RETURN VALUE
|
|
|
|
------------
|
|
|
|
|
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-START)
|
|
|
|
On success, an object is returned, containing:
|
2021-08-25 04:51:34 +02:00
|
|
|
- **key** (array of strings):
|
|
|
|
- Part of the key added to the datastore
|
|
|
|
- **generation** (u64, optional): The number of times this has been updated
|
|
|
|
- **hex** (hex, optional): The hex data which has removed from the datastore
|
2021-08-25 04:50:13 +02:00
|
|
|
- **string** (string, optional): The data as a string, if it's valid utf-8
|
2021-09-03 12:07:59 +02:00
|
|
|
|
2021-08-25 04:50:12 +02:00
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-END)
|
|
|
|
|
|
|
|
The following error codes may occur:
|
2021-08-25 04:51:04 +02:00
|
|
|
- 1200: the key does not exist
|
|
|
|
- 1201: the key does exist, but the generation is wrong
|
|
|
|
- -32602: invalid parameters
|
2021-08-25 04:50:12 +02:00
|
|
|
|
|
|
|
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>
|
|
|
|
|
2021-11-04 15:15:51 +01:00
|
|
|
[comment]: # ( SHA256STAMP:ac7468cf6eadc8ab85216b4d5ecb55a32f3d0bc84180f477151c3748901824de)
|